Skip to content

Instantly share code, notes, and snippets.

@clarklab
Created November 7, 2012 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clarklab/4032762 to your computer and use it in GitHub Desktop.
Save clarklab/4032762 to your computer and use it in GitHub Desktop.
ZenCoding example
<!-- the following shorthand -->
html:5>div.container>nav.main>li.item*4>a
<!-- expands into this clean markup-->
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<div class="container">
<nav class="main">
<li class="item"><a href=""></a></li>
<li class="item"><a href=""></a></li>
<li class="item"><a href=""></a></li>
<li class="item"><a href=""></a></li>
</nav>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment