Templates e o JavaScript

1,333
-1

Published on

Apresentação sobre os desafios e soluções para trabalhar com templates no JavaScript.

0 Comments
4 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,333
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
9
Comments
0
Likes
4
Embeds 0
No embeds

No notes for slide

Templates e o JavaScript

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

×