Skip to content

Instantly share code, notes, and snippets.

@jonathantneal
Last active December 14, 2015 00:28
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 jonathantneal/4998574 to your computer and use it in GitHub Desktop.
Save jonathantneal/4998574 to your computer and use it in GitHub Desktop.
Syntactically Awesome Markup
<!doctype html>
<html>
<head>
<script>
if (true) {
}
</script>
</head>
<body>
<h1>Syntactically Awesome Markup</h1>
<div class="container">
<p>Welcome to the future.</p>
</div>
</body>
</html>
doctype 5
html[lang=en]
head
script "
if (true) {
}
"
title pageTitle
body
h1 "Syntactically Awesome Markup"
#container
if youAreUsingSam
p "Welcome to the future."
else
p "Then tell me, future boy, who's President of the United States in 1985?"
<nav>
<ul>
<li>
<a href="home.html">Grandson, Inc.</a>
</li>
<li>
<a href="services.html">Services</a>
<ul class="child-menu">
<li>
<a href="heavy.html">Lifting Heavy Objects</a>
</li>
<li>
<a href="high.html" class="active">Reaching High Objects</a>
</li>
<li>
<a href="holidays.html">Visiting on Holidays</a>
</li>
</ul>
</li>
<li>
<a href="rotaryphone.html">Contact</a>
</li>
</ul>
</nav>
nav
ul:if(navigation.parent):then(.child-menu)
each navigation.children as item
li
a[href=item.href]:if(item.active):then(.selected) item.label
if item.children
goto ul { navigation: item }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment