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.
Only printed if is present<br />
Printed if is missing<br />