Skip to content

Instantly share code, notes, and snippets.

@timaschew
Last active August 29, 2015 13:57
Show Gist options
  • Save timaschew/7543cf3d0c455f686784 to your computer and use it in GitHub Desktop.
Save timaschew/7543cf3d0c455f686784 to your computer and use it in GitHub Desktop.
Jade Syntax, just visit http://jade-lang.com/demo/ and paste the code
// HTML comment
//- jade comment
- var alpha = "foo"
- var beta = "bar"
- var delta = "<i>baz</i>"
- var gamma = "footer"
h1 foobar
h1 foo#{beta}
h1 #{alpha}bar
//- WARNING: whitepsace(s) between h1 and = are forbidden! The same for h1=!
h1= alpha+beta
h1= alpha+"bar"
h2: i baz
h2!= delta
//- here: unbuffered HTML code
h3= delta
footer imprint
#{gamma} imprint
<!-- HTML comment-->
<h1>foobar</h1>
<h1>foobar</h1>
<h1>foobar</h1>
<h1>foobar</h1>
<h1>foobar</h1>
<h2><i>baz</i></h2>
<h2><i>baz</i></h2>
<h3>&lt;i&gt;baz&lt;/i&gt;</h3>
<footer>imprint</footer>
<footer>imprint</footer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment