iris/_examples/view/template_pug_0/templates/index.pug
2018-05-26 22:49:48 +03:00

25 lines
567 B
Plaintext

mixin withGo
| Generating Go html/template output.
doctype html
html(lang="en")
head
title= .pageTitle
script(type='text/javascript').
if (foo) {
bar(1 + 5)
}
body
h1 Jade - template engine
#container.col
if .youAreUsingJade
p {{ greet "iris user" }} <!-- execute template funcs -->
p You are amazing!
else
p Get on it!
p.
Jade is #[a(terse)] and simple
templating language with a
#[strong focus] on performance
and powerful features.
+ withGo