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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Evandro Leopoldino Gonçalves
December 15, 2011
Programming
110
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Templates e o JavaScript
Apresentação feita na RioJS, de 2011
Evandro Leopoldino Gonçalves
December 15, 2011
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
100
Metaprogramação em Python
evandrolg
0
680
Programação Funcional e o JavaScript
evandrolg
7
600
Arquitetura Client-Side Comentários Globo.com
evandrolg
0
110
Other Decks in Programming
See All in Programming
Apache Hive: そしてCloud Native Lakehouseへ
okumin
1
200
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
490
「人を評価する AI」の設計と実装
ryoyanara
0
150
Laravel Boostに学ぶ、AIにPHPを書かせる技術 〜OSSの実装から蒸留するエージェント制御の王道〜
kentaroutakeda
3
660
AWS CDK を「作」ってみた 〜フルスクラッチで見えた CDK の裏側〜 / aws-cdk-from-scratch
gotok365
3
2.8k
php-fpmのプロセスが枯渇した日-調査・対処・そして本当にやるべきだったこと-
shibuchaaaan
0
220
komatsuna「分散システムにおけるバグ分析手法」
komatsunaqa
0
230
これって Effect でできたのでは? / TSKaigi Mashup Kansai #2
susisu
0
140
ドリフトを絶対に許さない(?)CDK運用 / CDK Ops with Zero Tolerance for Drifts (?)
akihisaikeda
1
170
アルゴリズムは何を圧縮しているのか ─ Haskell から育った「圧縮代数」というメンタルモデル
naoya
16
3.8k
プロポーザルを書いてもらう
pvcresin
0
170
AI時代に設計が 最大の生産性レバーになる 意図駆動開発とデータを消さない設計|Don't Delete Your Data or Your Intent — Design as the Deepest Lever in the AI Era
tomohisa
1
660
Featured
See All Featured
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.8k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.8k
New Earth Scene 8
popppiees
3
2.5k
Heart Work Chapter 1 - Part 1
lfama
PRO
8
36k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
360
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.5k
Statistics for Hackers
jakevdp
799
230k
Everyday Curiosity
cassininazir
0
270
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
650
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
3
400
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.4k
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