Stylesheet caching w/ smarty variables
Posted: Fri Jan 29, 2010 12:12 am
I just added a new plugin for stylesheet retrieval.
http://dev.cmsmadesimple.org/projects/smartstylesheet
It is a rework of the {stylesheet} which exports a static file for the page to use, it automatically updates when the stylesheet is updated.
I also added smarty processing with the delimiters of [[ and ]], so you can have [[assign var=color1 value='#c3c3ce']] at the top of the file and then use later with [[$color1]]
Just a reminder, when static stylesheets are created the background image location usually needs to be changed. An easy way I found to do it is have [[assign var=dir value='/mydir/']] (watch the '/') at the beginning of the file and then do a search/replace with 'url('/'url([[dir]]'
http://dev.cmsmadesimple.org/projects/smartstylesheet
It is a rework of the {stylesheet} which exports a static file for the page to use, it automatically updates when the stylesheet is updated.
I also added smarty processing with the delimiters of [[ and ]], so you can have [[assign var=color1 value='#c3c3ce']] at the top of the file and then use later with [[$color1]]
Just a reminder, when static stylesheets are created the background image location usually needs to be changed. An easy way I found to do it is have [[assign var=dir value='/mydir/']] (watch the '/') at the beginning of the file and then do a search/replace with 'url('/'url([[dir]]'