Used templates for all html that directly used in view or even the one that needs to be rendered by javascript.