Swig templates are configured as the Express view engine, providing inheritance and extendability. Custom tags and filters allow us to compile markdown to HTML at the view level.
// tag for includes
{% marked %}
{% include view %}
{% endmarked %}
// filter for vars
{{ content|marked }}
Swig templates are configured as the Express view engine, providing inheritance and extendability. Custom tags and filters allow us to compile markdown to HTML at the view level.
Goals
2. Make content additions and changes easy and painless
GitHub Flavored Markdown syntax is used in sub-view templates that are referenced within a layout template, making page additions and updates simple for UX designers.
## Story lead
### HTML
```html
<header class="story-lead">
<h2 class="flag"><a href="/businessreports/">Business Report</a></h2>
<h3>Computing News</h3>
<h1>Rise of the Robot Security Guards</h1>
<p class="intro">Startup Knightscope is preparing to roll out human-size robot patrols.</p>
<p class="byline">By <a href="/author/rachel-metz/">Rachel Metz</a> on <time>November 13, 2014</time></p>
</header>
```