|
|
|
|
|
by MatthewPhillips
5106 days ago
|
|
Client side templates are a hack, presently speaking. They are inserted into a script tag in the head (usually), so if you are working a single page app you need to include every template for your entire site in the head of the document. It works, but man is it ugly. Then you have to include some bulky library that parses these scripts and compiles them to a function that you'll use later. All this happens pretty fast, but not any faster than just using the DOM apis. I can't find the link, but I believe there is a proposal to standardize client side templating, so hopefully that will make the process a bit cleaner. |
|