Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

mustache_rails3 provides a template handler and generators for Rails 3.

branch: layouts

This branch is 1 commit ahead and 8 commits behind master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 config
Octocat-spinner-32 lib
Octocat-spinner-32 LICENSE
Octocat-spinner-32 mustache_rails3.gemspec
Octocat-spinner-32 readme.md
readme.md

Mustache support for Rails 3

This generator and template handler for Mustache in Rails 3 is based on the work of Paul Barry, Louis T., and Martin Gamsjaeger. I am indebted to them for allowing me to stand on their shoulders.

Subclass Mustache::Rails for your view files. Place view files in app/views/:controller/:action.rb.

Mustache::Rails registers a TemplateHandler for ".rb" files. Templates go in app/templates/:controller/:action.format.mustache

This is also available as a rubygem.

I'm just getting started. This really is a low-numbered prerelease. :-) I have asked for comments on the mustache project's Rails Support issue ticket. Please leave feedback there, and thanks.

Instructions

A Rails 3 reminder: be sure to add gem 'mustache' to your project's Gemfile before running any generators or starting the server. If you're using the mustache_rails3 gem, be sure to also add gem 'mustache_rails3'

You can enable the mustache template handler by running rails g mustache:install in your project directory.

TODO:

Something went wrong with that request. Please try again.