mustache_rails3 icon indicating copy to clipboard operation
mustache_rails3 copied to clipboard

Allow for multiple template paths

Open cowboyd opened this issue 14 years ago • 2 comments

For frameworks like cells that don't use standard template paths, I've added the ability to search multiple paths for your mustache templates. The array of search paths is stored in Mustache::Rails::Config.template_paths and the current template_base_path is always the first entry in this array.

That way, you can do things like this:

Mustache::Rails::Config.template_paths << "app/cells"

I also changed it to raise a MissingTemplate if the mustache file could not be found rather than Errno::ENOENT which what it's currently doing.

thanks for a great plugin!

cheers, Charles

cowboyd avatar Feb 22 '11 20:02 cowboyd

Nice. Would love to see this merged.

jocubeit avatar Oct 23 '11 06:10 jocubeit

+1 on getting this merged

myobie avatar Dec 01 '11 19:12 myobie