Skip to Content
Pragmatic Guide to Sass 3
book

Pragmatic Guide to Sass 3

by Hampton Lintorn Catlin, Michael Lintorn Catlin
July 2016
Intermediate to advanced
130 pages
2h 11m
English
Pragmatic Bookshelf
Content preview from Pragmatic Guide to Sass 3

Haml Walkthrough: HTML

We’re not going to go through the HTML-to-Haml conversion in detail like the previous ERB one. We just want to see how the stylistic changes can also be applied to a static site.

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/
 xhtml1-transitional.dtd">
 <html xmlns=​"http://www.w3.org/1999/xhtml"
 xml:lang=​"en"​>
  <head>
  <meta http-equiv=​"Content-Type"​ content=​"text/html;
 charset=UTF-8"​ />
  <title>​<​%= @title || “Awesome Site” %></title>
  </head>
  <body>
  <div id=​'wrapper'​>
  <div id=​'header'​>
  <h1>Awesome Site</h1>
  </div>
  <div id=​'content'​>
 <​%= yield %>
  </div>
  <div id=​'footer'​>
  <small>Copyright Hampton Lintorn ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Jump Start Sass

Jump Start Sass

Hugo Giraudel, Miriam Suzanne
What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz
Mastering Sass

Mastering Sass

Luke Watts

Publisher Resources

ISBN: 9781680502060Errata Page