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
CleanShaved: See the Mustache Disappear
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Frederic Jean
September 21, 2012
Technology
170
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
CleanShaved: See the Mustache Disappear
Lightning talk given at Rocky Mountain Ruby 2012
Frederic Jean
September 21, 2012
Transcript
13 slides
CleanShaved See the Mustache Disappear
O P R ther eople's esources
Client-Side Templates Mustache Handlebars Hogan
Introducing CleanShaved
• Built on top of Handlebars.js • Provides a Rails
Helper to wrap templates
<%= template_for :hello do %> <h2>Hello, {{ message }}!</h2> <%
end %>
<script type="text/x-handlebars-template" class="template" name="test"> <h2>Hello, {{ message }}!</h2> </script>
The Shave
O P R ther eople's esources
• Built on top of Handlebars.js • Provides a Rails
Helper to wrap templates • Precompiles Handlebars templates to JS
Demo
CleanShaved • https://github.com/ fredjean/clean_shaved • gem install clean_shaved • https://speakerdeck.com/
u/fredjean/p/cleanshaved- see-the-mustache-disappear
Photo Credits • http://www.flickr.com/photos/denovich/ 3104766725/sizes/l/in/photostream/ • http://www.flickr.com/photos/sdasmarchives/ 5475242792/sizes/l/in/photostream/ • http://www.flickr.com/photos/library_of_congress/
6771386125/sizes/l/in/photostream/ • http://www.flickr.com/photos/library_of_congress/ 3121125698/sizes/o/in/photostream/
More Decks by Frederic Jean
See All by Frederic Jean
Parlez-Vous HTTP? (Abbreviated)
fredjean
4
140
Parlez-Vous HTTP?
fredjean
2
160
Other Decks in Technology
See All in Technology
NutanixへのSSHアクセスの今後について
shadowhat
0
120
個人ASを取得して、自宅Kubernetes上のVMをグローバルIPで公開した話
munenick
0
220
CloudTrail を推したい
kazzpapa3
1
160
そのイメージ、どのCIが作った? Artifact Attestationsで来歴を固定する / Which CI system created that image? Pinning provenance with Artifact Attestations
chmikata
0
190
gem install とrequire のむこうがわ
ydah
0
250
農家は秘伝のタレを知らない - NOBODY KNOWS THE HIDDEN SOURCE - Kaggriculture 3rd Place Solution
masspeaks
3
660
Web Performance Is a Journey [PerfNow 2026]
tammyeverts
2
100
目を覚ませ!僕らの認証情報が何者かに侵略されてるぞ
tkito
2
480
ブース設計、 お前もプロダクトだったのか / So Booth Design Was a Product All Along
akihiro0038
0
120
エンタープライズ事業未経験のデータ屋、 AI時代にN回撃沈する.pdf
ryoskdara_
0
180
パスワードのない鍵で、 データを手元に置く
ginjihayashi
0
390
落とし穴にハマってわかった 開発生産性を測るときに気をつけたいこと
munakata
3
480
Featured
See All Featured
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
850
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
350
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
AI: The stuff that nobody shows you
jnunemaker
PRO
12
1.3k
Between Models and Reality
mayunak
4
600
Code Reviewing Like a Champion
maltzj
529
40k
The Cost Of JavaScript in 2023
addyosmani
56
10k
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
4
4.4k
The Language of Interfaces
destraynor
162
27k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
330