3 category: JavaScript libraries
5 prism_languages: [jade]
20 h1.class#id(name='hi')
21 | This is some text, hello there,
36 | A div, with class 'search'
40 h1 A heading with text
56 input(type='text' name='q' autofocus)
60 - var authenticated = true
61 body(class=authenticated ? 'authed' : 'anon')
64 See: [Attributes](https://pugjs.org/language/attributes.html)
69 // This comment will appear in the HTML
73 //- This is a silent comment
78 Nesting inside a comment creates
82 See: [Comments](https://pugjs.org/language/attributes.html)
113 ### Includes (partials)
116 include ./includes/head.pug
120 include:markdown article.md
123 See: [Includes](https://pugjs.org/language/includes.html)
129 This is text that doesn't need to
130 be prefixed by pipes.
136 // It's great for raw
137 // JavaScript and stuff
146 a(href='/logout') Sign out
148 a(href='/login') Sign in
152 See: [Conditionals](https://pugjs.org/language/conditionals.html)
170 Mixins allow you to create reusable code blocks.
171 See: [Mixins](https://pugjs.org/language/mixins.html)
185 See: [Mixin attributes](https://pugjs.org/language/mixins.html#mixin-attributes)
198 +article('hello there')
202 See: [Mixin blocks](https://pugjs.org/language/mixins.html#mixin-blocks)