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
Hogan.js
Search
sayrer
February 01, 2012
Technology
2
1.2k
Hogan.js
Twitter Open Source Summit
January, 31, 2012
sayrer
February 01, 2012
Tweet
Share
Other Decks in Technology
See All in Technology
Phase04_ターミナル基礎
overflowinc
0
2.3k
FastMCP OAuth Proxy with Cognito
hironobuiga
3
200
スピンアウト講座03_CLAUDE-MDとSKILL-MD
overflowinc
0
1.3k
やさしいとこから始めるGitHubリポジトリのセキュリティ
tsubakimoto_s
0
620
GitHub Copilot CLI で Azure Portal to Bicep
tsubakimoto_s
0
190
テストプロセスにおけるAI活用 :人間とAIの共存
hacomono
PRO
0
160
20年以上続く PHP 大規模プロダクトを Kubernetes へ ── クラウド基盤刷新プロジェクトの4年間
oogfranz
PRO
0
240
20260320_JaSST26_Tokyo_登壇資料.pdf
mura_shin
0
120
Copilot 宇宙へ 〜生成AIで「専門データの壁」を壊す方法〜
nakasho
0
190
A4)シラバスを超えて語る、テストマネジメント
moritamasami
0
130
AIエージェント勉強会第3回 エージェンティックAIの時代がやってきた
ymiya55
0
120
品質を経営にどう語るか #jassttokyo / Communicating the Strategic Value of Quality to Executive Leadership
kyonmm
PRO
3
1.2k
Featured
See All Featured
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
0
240
Making Projects Easy
brettharned
120
6.6k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
830
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
300
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
30 Presentation Tips
portentint
PRO
1
260
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
55k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
120
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
85
KATA
mclloyd
PRO
35
15k
Skip the Path - Find Your Career Trail
mkilby
1
89
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
250
Transcript
Hogan.js Twitter Open Source Summit January 31, 2012
@sayrer
Agenda
What is Mustache? {{#showform}} <form> <label>Label</label> {{{some_markup}}} <label class="checkbox"> <input
type="checkbox"> {{#i18n}}Check me out{{/i18n}} </label> <button class="{{class}}">Submit</button> </form> {{/showform}}
Why Mustache? •Similar to HTML, easy to edit •Mock data
as JSON files •Programmers not required
Designer
Language Support •Mustache.rb •Mustache.java •Mustache.js...
Problems •Performance •Runtime compilation •Forked
Choices •Work on Mustache.js •Dust.js •Handlebars.js •or...
Hogan.js •Compile on the server •Parser API •Performance
At Runtime var s = "some {{example}} text"; var template
= Hogan.compile(s); template.render({example: "foo"}); "some foo text"
Compiled var s = "some {{example}} text"; var template =
Hogan.compile(s); function(c,p,i){ var _ = this; _.b(i=i||""); _.b("some "); _.b(_.v(_.f("example",c,p,0))); _.b(" text"); return _.fl(); } "some foo text"
IE7 Performance
with iPhone 5
with Firefox 3.6
with Chrome 17
Uses at Twitter •Tweet embedding •Bootstrap build process •and soon,
Twitter.com
twitter.github.com/hogan.js Find us online: twitter.com/sayrer twitter.com/fat github.com/twitter/hogan.js Thanks!