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
Lightning-Fast Method Calls with Ruby 4.1 ZJIT / RubyKaigi 2026
k0kubun
3
1.7k
感情を設計する
ichimichi
5
1.6k
iOS機能開発のAI環境と起きた変化
ryunakayama
0
190
Back to the roots of date
jinroq
0
520
10 Tips of AWS ~Gen AI on AWS~
licux
5
480
ルールルルルルRubyの中身の予備知識 ── RubyKaigiの前に予習しなイカ?
ydah
1
220
書籍「ユーザーストーリーマッピング」が私のバイブル
asumikam
4
440
Agentic Elixir
whatyouhide
0
410
決定論 vs 確率論:Gemini 3 FlashとTF-IDFを組み合わせた「法規判定エンジン」の構築
shukob
0
130
2026-04-15 Spring IO - I Can See Clearly Now
jonatan_ivanov
1
120
エラー処理の温故知新 / history of error handling technic
ryotanakaya
7
1.7k
ドメインイベントでビジネスロジックを解きほぐす #phpcon_odawara
kajitack
3
820
Featured
See All Featured
Embracing the Ebb and Flow
colly
88
5k
Designing for Performance
lara
611
70k
The Curious Case for Waylosing
cassininazir
0
320
Joys of Absence: A Defence of Solitary Play
codingconduct
1
350
The Curse of the Amulet
leimatthew05
1
12k
Optimizing for Happiness
mojombo
378
71k
Facilitating Awesome Meetings
lara
57
6.8k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.4k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
120
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Fireside Chat
paigeccino
42
3.9k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
180
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?