Friday, December 21, 2012

Get content of a file in a HTML Page

store the contents of your template in your HTML itself using something like <script id="templ" type="text/x-template">...</script>, and then reference the contents of the template via document.getElementById('templ')

No comments: