Template Content

Template content

template content type allows you to load content from a <template> element. Template elements are good when you need to inject contents into the page that will not be rendered in DOM, but be available always to be cloned or provide contents.
You can use this to load into the modal some server generated html markup. Yes, we can directly load the markup using content type html, but template is another way to load content inside a modal.
ModalManager.instance.addModal({
    body : {
        contentType : 'template',
        templateId : 'terms-template'
    }
});
Compared to html content demo, it is much cleaner right? Btw, if you provide a wrong template id, you will get an error message.