I have been developing a site using Ruhoh, a Ruby based static site generator. It use Moustache as a templating engine which I had not used before but am now very impressed with.

A cool feature is the ability to include and exclude parts of the template based on the presence of variables.

{{#page.value}} Only printed if {{page.value}} is present {{/page.value}}

{{^page.value}} Printed if {{page.value}} is missing {{/page.value}}