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 %>
.erb
.js
<%= @user.id %>
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.