A quick comparison/ benchmark between Hogan, Dust, doT and underscore
Developed by Twitter (same team as Bootstrap), use exactly the same syntax as Mustache, but more performant and more stuff available server side.
My name is {{ name }}
A quick comparison/ benchmark between Hogan, Dust, doT and underscore
Developed by Twitter (same team as Bootstrap), use exactly the same syntax as Mustache, but more performant and more stuff available server side.
My name is {{ name }}
/* | |
Não sabemos o que tem dentro de "e" pode ser uma adição, | |
remoção ou ambos. O snippet abaixo funciona em todos os casos. | |
*/ | |
Estado.atualizaEstado = function(e){ | |
//Try to add a state; | |
try{ | |
if(typeof(e.added.id) !== undefined){ | |
Estado.selected.push(e.added.id); |