Short and sweet: Please show me how I can nest templates.
Example of what I want to do:
I want to dynamically include in a jQuery Tipped tooltip a select tag
and then call
on that tag. I am struggling to come up with a clean way to do this.
The following JSFiddle demonstrates that script tags cannot be nested in KendoUI templates: http://jsfiddle.net/johnzabroski/NHG3d/10/
I know why this doesn't work (see below), but I can't figure out a clean alternative.
This isn't even clean, and it did not work.
After I built this demonstration, I thought it would be a good idea to check what the HTML5 specification says , and also ran my markup  through the W3C's experimental HTML5 validator . It is not really clear from the HTML5 spec what the behavior should be. The spec mentions something about nested scripting tags in the parsing model overview [ http://www.whatwg.org/specs/web-apps/current-work/multipage/parsing.html#overview-of-the-parsing-model ], but then does not go on to define what that means. Meanwhile, the grammar for script tags seems to suggest you cannot nest script tags directly as I have done below . This is confirmed by how Chrome parses my JSFiddle examples. After the first closing script tag, it treats the whole as closed, and then treats the Hello, World! DIV as if it was outside the script tag.
<script type="text/plain" id="example">