UNPKG

compound-ex4

Version:

Compound-ex4 - MVC framework for NodeJS (ExpressJs 4 version), fork compoundjs(https://github.com/1602/compound)

23 lines (18 loc) 341 B
tag = 'p' foo = 'bar' #{tag} value #{tag}(foo='bar') value #{foo ? 'a' : 'li'}(something) here mixin item(icon) li if attributes.href a(attributes) img.icon(src=icon) block else span(attributes) img.icon(src=icon) block ul +item('contact') Contact +item(href='/contact') Contact