Templates js-
13
Templates e o JavaScript Evandro Leopoldino Gonçalves Desenvolvedor, Globo.com [email protected] @evandrolg
-
Upload
danilo-sousa -
Category
Internet
-
view
116 -
download
1
description
templates js
Transcript of Templates js-
Templates e o JavaScript
Evandro Leopoldino GonçalvesDesenvolvedor, Globo.com
[email protected]@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?