Getting the current year: :bash: @year date +%Y We need a doctype statement with a newline. We'll leverage Unix echo command for this. :bash: @doctype echo "" HTML pages have a head element so lets build that. :set: @headBlock @pageTitle Inside the body of a page HTML 5 supports a header element. :set: @headerBlock

@blogTitle

Likewise we have a footer that needs to be built. :set: @footerBlock Now let's use template.md as a page template converting it from markdown into HTML. :import-markdown: @pageTemplate template.md Now its time to populate the data elements in the page. :bash: @dateString date +%Y-%m-%d :set: @blogTitle My Blog :set: @pageTitle A Post :import-markdown: @contentBlock post.md Ok, we're ready to finally build the page. First we're going to expand some labels to generate our full HTML markup. :expand: @output @doctype@headBlock@headerBlock@pageTemplate@footerBlock Here is what the markup looks like: @output Now we will write it out to a file. That file will be called post.html :export: post.html @output Take a look at post.html and see the results.