Flexible HTML5 Templates