Examples
Example code and real life cases
Example code and real life cases
Website for an Android application. Written in a very DRY manner. Every section has a block of its own.
# Example block:
@ tap
---
css: image green
---

**Tap and hold** to search for Instagram shots in the local area.
@ end
# Template:
mixin block(key, obj)
section(id=key, class=obj.meta.css)
.contain
if obj.meta.logo
img(src=obj.meta.logo).logo
h2.title #{obj.meta.title}
.content !{obj.html}
if obj.meta.link
a(href=obj.meta.link.url).link #{obj.meta.link.title}
# Uses lodash, removes the first block and parses them through the mixin
block content
for key in markade._.drop(Object.keys($$), 1)
+block(key, $$[key])
Visit
-
Source Code
The website you're reading right now is generated with markade. And it is completely open source.
Source Code