- ViewEngine now supports extends and named blocks - Each route gets exclusive cached AST (no shared parent layouts) - Fix iteration over struct arrays in each loops - Add demo app with full e-commerce layout using extends - Serve static files from public folder - Bump version to 0.3.0
16 lines
448 B
Plaintext
16 lines
448 B
Plaintext
//- Button mixins with various styles
|
|
|
|
mixin btn(text, type)
|
|
- var btnClass = type ? "btn btn-" + type : "btn btn-primary"
|
|
button(class=btnClass)= text
|
|
|
|
mixin btn-link(href, text, type)
|
|
- var btnClass = type ? "btn btn-" + type : "btn btn-primary"
|
|
a(href=href class=btnClass)= text
|
|
|
|
mixin btn-icon(icon, text, type)
|
|
- var btnClass = type ? "btn btn-" + type : "btn btn-primary"
|
|
button(class=btnClass)
|
|
span.icon= icon
|
|
span= text
|