Put files (css, html, js, images) per feature in one place in Rails 3? -


Whenever I add a new feature (for example I've downloaded something), I want to add all files (CSS, HTML, JS, Image) in one place.

It will be a new feature in Symphony 2.0, which they call the bundle system. Everything will be in its own folder, it will be great to add new features so that you do not mix all the CSS, JS, image files with each other. Instead, there should be every feature.

And it would also be nice to remove these features. Then you know that all the files are in one place and they do not need to look in your application.

Example.

Instead ...

  Image / Fader. Img Cart 1. IMG Cart 2 Img javascript / pdf.js Cart.JS Stylesheets / FARIDC Cart_man CSS Cart_subcss  

You ... It should be done this way ...

enterprise / fader / fader.img Fader.css fader.js cart / cart 1.img cart2.img cart.js cart_main.css cart_sub.css

Is there any way to do this in Rail 3?

Of course, you can treat them just like a plugin - a set of files in a plugin Creating is very easy, after all - you basically put them in only one folder, in a file structure parallel to the root of your rail app, then the folder in your vendor / plugins folder

about it Here's the guideline:

Then, if you want to delete a feature, then Delete this plugin folder, and you are clean.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -