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
Shared Templates for Rails 3
Search
Alexey
October 01, 2012
Programming
190
1
Share
Shared Templates for Rails 3
Shared Templates for Rails 3
Alexey
October 01, 2012
Other Decks in Programming
See All in Programming
色即是空、空即是色、データサイエンス
kamoneggi
1
150
Agent Skills を社内で育てる仕組み作り
jackchuka
1
2.3k
バックエンドにElysiaJSを採用して気付いた、良い点・悪い点
wanko_it
1
130
These Five Tricks Can Make Your Apps Greener, Cheaper, & Nicer
hollycummins
0
120
20260514 - build with ai 2026 - build LINE Bot with Gemini CLI
line_developers_tw
PRO
0
460
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
630
Old Dog, New Tricks: The Java 25 Reinvention - JNation
bazlur_rahman
0
110
AIエージェントの隔離技術の徹底比較
kawayu
0
390
プラグインで拡張される Context をtype-safe にする難しさと設計判断
kazupon
2
270
Skillは並べた。動かなかった。契約で繋いだ。— 65個のSkillから、自走する開発サイクルへ
junholee
0
690
Zod v4 Codec でスキーマに型変換を埋め込む REST API 設計 #TSKaigi2026
ryutaro_yako
0
120
AgentCore Optimizationを始めよう!
licux
4
270
Featured
See All Featured
Deep Space Network (abreviated)
tonyrice
0
150
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
330
Fashionably flexible responsive web design (full day workshop)
malarkey
408
66k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
700
Raft: Consensus for Rubyists
vanstee
141
7.4k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.7k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
810
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.2k
sira's awesome portfolio website redesign presentation
elsirapls
0
250
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.3k
Speed Design
sergeychernyshev
33
1.7k
Amusing Abliteration
ianozsvald
1
170
Transcript
Shared Templates for Rails 3 EuRuKo 2012 Amsterdam Alexey Vasiliev
Railsware
Hello my name is Alexey Vasiliev (le0pard) @leopard_me https://github.com/le0pard Engineer
at Railsware.com
Ways to render web interface • Rails render content on
backend and send it to browser • Rails backend have only REST API and interface rendered by JavaScript in web application
Hybrid web application • Interface part rendered on backend and
part rendered on frontend • Very often need to use the same templates for backend and frontend • We need DRY!
And we love Mustache!
smt_rails • smt_rails (Shared Mustache Templates for Rails 3) •
gem 'smt_rails' • rails g smt_rails:install • You're done!
Example Template: Hello {{msg}}!!! ActionView: <%= render "tests/test", :mustache =>
{msg: "Test"} %> JavaScript: var content = SMT['tests/test']({msg: "Test"});
sht_rails • sht_rails (Shared Handlebars Templates for Rails 3) •
Build for people who like handlebars.js :)
Example http://smt.rw.rw/
Questions? Ideas? Opinions?