Templates e o 
JavaScript 
Evandro Leopoldino Gonçalves 
Desenvolvedor, Globo.com 
evandrolgoncalves@gmail.com 
@evandrolg
O que se vê por aí...
Concatenação de Strings
Dá para melhorar...
Array.join()
Supplant 
http://javascript.crockford.com/remedial.html
Micro-Templating 
http://ejohn.org/blog/javascript-micro-templating/
Sprintf 
http://www.nczonline.net/blog/2011/10/11/simple-maintainable-templating-with-javascript/
Mustache 
http://github.com/janl/mustache.js
Outras bibliotecas 
- jQuery Template: 
https://github.com/jquery/jquery-tmpl 
- Handlebars: 
http://www.handlebarsjs.com/
Carregando HTML 
externo 
http://encosia.com/using-external-templates-with-jquery-templates/
Dúvidas?
Obrigado! ;) 
Evandro L. Gonçalves 
evandrolgoncalves@gmail.com 
@evandrolg

Templates js-