Upgrade to Pro — share decks privately, control downloads, hide ads and more …

CleanShaved: See the Mustache Disappear

A4e17e6188fada503afd9f3ab81eea62?s=47 Frederic Jean
September 21, 2012

CleanShaved: See the Mustache Disappear

Lightning talk given at Rocky Mountain Ruby 2012

A4e17e6188fada503afd9f3ab81eea62?s=128

Frederic Jean

September 21, 2012
Tweet

More Decks by Frederic Jean

Other Decks in Technology

Transcript

  1. CleanShaved See the Mustache Disappear

  2. O P R ther eople's esources

  3. Client-Side Templates Mustache Handlebars Hogan

  4. Introducing CleanShaved

  5. • Built on top of Handlebars.js • Provides a Rails

    Helper to wrap templates
  6. <%= template_for :hello do %> <h2>Hello, {{ message }}!</h2> <%

    end %>
  7. <script type="text/x-handlebars-template" class="template" name="test"> <h2>Hello, {{ message }}!</h2> </script>

  8. The Shave

  9. O P R ther eople's esources

  10. • Built on top of Handlebars.js • Provides a Rails

    Helper to wrap templates • Precompiles Handlebars templates to JS
  11. Demo

  12. CleanShaved • https://github.com/ fredjean/clean_shaved • gem install clean_shaved • https://speakerdeck.com/

    u/fredjean/p/cleanshaved- see-the-mustache-disappear
  13. 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/