Chain Template Handlers in Rails 3

Somehow, I got the impression that names like this were possible:

show.js.custom.coffee

Assume that both handler working properly, and both show.js.customand show.js.coffeeare working fine, but when I add both extensions together, the Rails stops (edited for brevity):

Missing template show with {:handlers=>[:custom, :coffee], :formats=>[:js]}...

So, if at all possible, what do I need to do to get it to work?

Thank!

+1
source share
2 answers

Yes, that would be great. just like asterisks and preprocessing function. I always want to parse ajax request views with view.js.coffee.haml. I earned with coffee.

https://github.com/markbates/coffeebeans

, , .

0

haml js.coffee-, . , .

0

All Articles