Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
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
Transcript
13 slides
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
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
110
Metaprogramação em Python
evandrolg
0
690
Programação Funcional e o JavaScript
evandrolg
7
610
Arquitetura Client-Side Comentários Globo.com
evandrolg
0
110
Other Decks in Programming
See All in Programming
Spec-driven Development with AI
simas
PRO
0
2.3k
Materialが消えた日 〜真っ白なFlutterキャンバスにRenderObjectで絵を描く〜
umigishiaoi
0
160
AI Augmentation Techniques with Liberty
ivargrimstad
1
470
プロジェクトコードをキレイキレイしよう!暗黙的な参照を読み解く静的解析
ostk0069
0
210
AWS CDKを理解するために公式の定義を深掘って解説してみる / Understanding AWS CDK by Digging into Its Official Definition
akihisaikeda
3
300
学びを記事・スライド・Xへ高速展開する― AI-assisted Learning Loopで回すコンテンツ生成術
ochtum
0
210
graphql-ruby を Spinel で速くしようとした話
mtsmfm
0
140
全ての永続トークンを、生まれる前に消し去りたい!
sylph01
3
1.7k
[Kotlin Fest 2026] eBPF Tracing for Kotlin
takehaya
0
120
Modernizing iOS Apps
seyfoyun
0
150
はじめてのPLATEAU
nokonoko1203
1
650
AI時代のTerminal環境を UNIX哲学で設計・運用する
yasunori0418
1
350
Featured
See All Featured
GitHub's CSS Performance
jonrohan
1033
470k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.8k
My Coaching Mixtape
mlcsv
0
390
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
380
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Believing is Seeing
oripsolob
1
280
WENDY [Excerpt]
tessaabrams
15
40k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
1.1k
Exploring anti-patterns in Rails
aemeredith
4
570
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Making Projects Easy
brettharned
120
6.9k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.6k