new HTML form generation system using templates instead of directives