public
Description: A sample rails app to get mustache working on it
Homepage:
Clone URL: git://github.com/foca/mustache-on-rails-example.git
name age message
file .gitignore Sun Oct 04 21:16:48 -0700 2009 A simple blog [foca]
file README Mon Oct 05 09:52:52 -0700 2009 Add a README [foca]
file Rakefile Sun Oct 04 21:16:48 -0700 2009 A simple blog [foca]
directory app/ Fri Oct 09 09:56:39 -0700 2009 updated the views and templates [foca]
directory config/ Fri Oct 09 10:24:32 -0700 2009 clean up path handling a bit, it's all self con... [foca]
directory db/ Sun Oct 04 21:16:48 -0700 2009 A simple blog [foca]
directory doc/ Sun Oct 04 21:16:48 -0700 2009 A simple blog [foca]
directory lib/ Fri Oct 09 13:26:03 -0700 2009 Define attr_reader for ivars in anonymous musta... [foca]
directory public/ Sun Oct 04 21:16:48 -0700 2009 A simple blog [foca]
directory script/ Sun Oct 04 21:16:48 -0700 2009 A simple blog [foca]
directory test/ Sun Oct 04 21:16:48 -0700 2009 A simple blog [foca]
directory vendor/ Mon Oct 05 16:15:12 -0700 2009 Update mustache [foca]
README
Example of Mustache inside rails

WORKING:
* loads Mustache::Rails subclasses from app/views/{controller}/{action}.rb
* loads Mustache templates from app/templates/{controller}/{action}.html.mustache
* helpers and routing work

TODO:
* partials
* layouts
* complex helpers (forms!)
* different mime types (not just html.mustache)

See http://github.com/defunkt/mustache/issues#issue/3 for the discussion about this.