What files can be .erb files

I just realized that the extension .erb

can be added to files .js

(to save the time it would have). Is there a list of file types that the functions can use .erb

? Or some text file is possible .erb

? I mostly use variable placement, eg.<%= @user.id %>

+3


source to share


1 answer


Yes, you can basically add the extension .erb

to any text file and start templating :)



I've personally only tried this on views and JS files, but I don't understand why it won't work for other files.

+6


source







All Articles