Skip to content

Instantly share code, notes, and snippets.

@dievardump
Created March 27, 2013 19:23
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 dievardump/46f9665645088b901fab to your computer and use it in GitHub Desktop.
Save dievardump/46f9665645088b901fab to your computer and use it in GitHub Desktop.
// body.myml
@partial header
h1 this is conteeeent
section
@each articles {
@partial article with this // this refer to the current item in articles
}
@partial footer this // this refer to the scope
//header.myml
header this is a super header
// article.myml
article
@if img {
img[src:img]
}
h1 title
p[class:trout text] @html content
@partial footer with {links: keywords}
//footer.myml
footer
nav
ul
@each links {
li
a[href: this.link] label
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment