This is a migrated thread and some comments may be shown as answers.

Any issues creating template html in JS files?

1 Answer 73 Views
Templates
This is a migrated thread and some comments may be shown as answers.
Fillip
Top achievements
Rank 1
Fillip asked on 28 Jun 2016, 10:36 PM

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.

1 Answer, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 30 Jun 2016, 04:16 PM

Hello Fillip,

There should not be issues when using the approach in the linked example.

Regards,
Dimiter Madjarov
Telerik
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
Templates
Asked by
Fillip
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or