I'm using doT.js as template engine and I need to use html files as partial view templates. is there any way to pass urls instead of html string for templates?
how to use html files and partial view templates in dot.js
603 views Asked by s korhani At
1
I couldn't find any documents on this, but it's easy to use XHR requests for reading HTML files and passing to as template string:
suppose you have a method to get content of HTML file
then you can use it in your template generator: