Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

Any issues creating template html in JS files?

$
0
0

Most of the kendo examples use a script tag template for the HTML of a widget (modal, etc).I was doing some experimentation to see if I could define the template html in my JS files. Turns out that works just fine, JS/logic expressions and all:  http://dojo.telerik.com/izEJa

 

I was wondering if anyone knows of any negatives of doing this? I am considering creating template html in my JS to make the templates more portable and to declutter my views more.


Viewing all articles
Browse latest Browse all 84751

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>