Let's say I have a file called
The extension of the file will be composed of two parts: the format (
foobar.js) followed by the handler (
A handler is a preprocessor for the template, or a templating language. There are a number of handlers built in, and many more can be added by using extra gems.
The order of conversion is from right to left.
I always put
.erb at last for these kind of situation. For example,