Move html code from directives to templates.
Merge pull request #167 from onrik/master

chore: Move html code from directives to templates.