I want to create a jQuery template(s) that will be used project wide. I would prefer to put the templates in a separate file or files and compile them on project start up using the template function.
I don’t want to have the templates in the markup, in script tags. Is this possible and how would I do it?
As RoccoC5 suggested it, you can define a small plugin which will fetch your remote template and then append its content into a script tag to the head:
and use it with:
or:
Hope this help.