The whole point of this is to include a template from wrap bootstrap. I have been playing around with it, but would it be possible to include a folder to our rails application.css or application.js in app/assets (or even images).
I have put my files from my template under
For now, I basically require each one and it works, but it's a long process (since sometime templates have plugins). Is it possible to require a folder, so it fetch every file with *.css extension?
So, I would do something like (in app/assets/stylsheets/application.css):
*= require mytemplate/*.css (doesn't work)
And same for others...
You can use the require_tree
directive in the application.css
and application.js
manifest files, which will recursively include any files in the given directories. These are relative paths however, so you'll need something like this:
*= require_tree ../../../vendor/assets/stylesheets
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments