i’am working on a little javascript library, that uses the lovely jquery-tmpl engine. I would like to avoid forcing the user to paste the necessary templates into his/her html (or to be confronted with the template code at all for that matter).
So my question is: Is there a way to hide my template code, preferably in my js file, as I understand, the script-tags are necessary (if only in order to be able to select it with jquery).
The only thing I found so far is putting the templates in external file like here but it is not really what i want.
thanks
i’am working on a little javascript library, that uses the lovely jquery-tmpl engine. I
Share
From http://api.jquery.com/jQuery.template/