ref #112: rewrite the TemplateEngine, rollback HTMLRenderer, now works using latest seq renderer