828 B
828 B
title | category |
---|---|
Jade | JavaScript libraries |
doctype html
// comment (html)
-// silent comment
html(lang='en')
- javascript()
h1.class#id(name='hi')
| Text. Hello there,
= name
if condition
p. hello
p.
multiline text
goes here
Iteration
ul
each user in users
li= user
Layouts
extends layout.jade
block title
| hello
block content
| hello
-// layout.jade
title
block title
body
block content
Includes (partials)
include ./includes/head.jade
include:markdown article.md
Mixins
mixin list
ul ..
+list
mixin pet(name)
span.pet= name
+pet('cat')
mixin article(title)
article
h2.title= title
block
+article('hello there')
p Content goes here