jetheredge/SquishIt — Issue #91: Add CSS/JavaScript via a String
Author: toepoke
Created: 2011-11-02 09:30:59+00:00
State: open

Hi,

Think this kind of gets touched on in issue #45, but raising separately for clarity.

May I suggest an Add overload for the CSS and JavaScript bundles that take a String parameter, allowing:

a) Strings of javascript to be squished into an external file.
b) Strings of CSS to be squished into an external file.

a) is useful for dynamic languages (e.g. ASP.NET and ASP.NET MVC) where element IDs are derived from a model and hence have to be declare in javascript through the resulting page (naturally the developer would need to be careful they are using static elements declared on the page).

b) is useful for theming where the CSS rules are stored elsewhere, e.g. database.

For the record, cracking piece of tech and thanks to all who've contributed. Keep up the good work.

Cheers,
Franz.
http://toepoke.co.uk