Skip to content

Instantly share code, notes, and snippets.

@ianaya89
Created May 7, 2016 20:30
Show Gist options
  • Save ianaya89/da8b03b697045c71077119e57456f039 to your computer and use it in GitHub Desktop.
Save ianaya89/da8b03b697045c71077119e57456f039 to your computer and use it in GitHub Desktop.
Basic jade features.
div(class="movie-card", id="oceans-11")
h1(class="movie-title") Ocean's 11
img(src="/img/oceans-11.png", class="movie-poster")
ul(class="genre-list")
li Comedy
li Thriller
- var profileName = "Danny Ocean";
div
p Hi there, #{profileName}. How are you doing?
- var x = 5;
div
ul
- for (var i=1; i<=x; i++) {
li Hello
- }
- var droids = ["R2D2", "C3PO", "BB8"];
div
h1 Famous Droids from Star Wars
for name in droids
div.card
h2= name
// creation
mixin thumbnail(imageName, caption)
div.thumbnail
img(src="/img/#{imageName}.jpg")
h4.image-caption= caption
// usage
+thumbnail("the godfather", "capicci?")
div
p Hello!
p World!
div
p How are you?
p.
I'm fine thank you.
And you? I heard you fell into a lake?
That's rather unfortunate. I hate it when my shoes get wet.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment