Features/7/htmltemplate

Implements #7.