Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Templates e o JavaScript
Search
Evandro Leopoldino Gonçalves
December 15, 2011
Programming
1
110
Templates e o JavaScript
Apresentação feita na RioJS, de 2011
Evandro Leopoldino Gonçalves
December 15, 2011
Tweet
Share
More Decks by Evandro Leopoldino Gonçalves
See All by Evandro Leopoldino Gonçalves
Conheça Lua: uma linguagem dinâmica com core minimalista
evandrolg
0
94
Metaprogramação em Python
evandrolg
0
670
Programação Funcional e o JavaScript
evandrolg
7
590
Arquitetura Client-Side Comentários Globo.com
evandrolg
0
96
Other Decks in Programming
See All in Programming
go test -json そして testing.T.Attr / Kyoto.go #63
utgwkk
3
270
Protocol Buffersの型を超えて拡張性を得る / Beyond Protocol Buffers Types Achieving Extensibility
linyows
0
110
AI時代のUIはどこへ行く?
yusukebe
16
8.4k
Ruby Parser progress report 2025
yui_knk
1
300
2025 年のコーディングエージェントの現在地とエンジニアの仕事の変化について
azukiazusa1
19
10k
MCPで実現するAIエージェント駆動のNext.jsアプリデバッグ手法
nyatinte
7
1.1k
奥深くて厄介な「改行」と仲良くなる20分
oguemon
1
460
機能追加とリーダー業務の類似性
rinchoku
2
1.1k
為你自己學 Python - 冷知識篇
eddie
1
340
速いWebフレームワークを作る
yusukebe
5
1.7k
さようなら Date。 ようこそTemporal! 3年間先行利用して得られた知見の共有
8beeeaaat
2
1.4k
🔨 小さなビルドシステムを作る
momeemt
3
660
Featured
See All Featured
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
Git: the NoSQL Database
bkeepers
PRO
431
66k
Six Lessons from altMBA
skipperchong
28
4k
For a Future-Friendly Web
brad_frost
180
9.9k
Optimizing for Happiness
mojombo
379
70k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.1k
Faster Mobile Websites
deanohume
309
31k
Practical Orchestrator
shlominoach
190
11k
A designer walks into a library…
pauljervisheath
207
24k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Fireside Chat
paigeccino
39
3.6k
Stop Working from a Prison Cell
hatefulcrawdad
271
21k
Transcript
Templates e o JavaScript Evandro Leopoldino Gonçalves Desenvolvedor, 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?
Obrigado! ;) Evandro L. Gonçalves
[email protected]
@evandrolg