Based on some feedback that I've gotten from the list (thanks all!), I've added some new functionality and improved the existing.

NEW FEATURES

1. Added <r:stylesheet> and <r:javascript> tags for use in pages. Based on the attributes, these tags will render:
         * The url to a css or js file
         * The content of a css or js file
         * The content of a css or js file wrapped in the appropriate
           <style> or <script> html tags.

  2. Added <r:stylesheet> and <r:javascript> tags for use in your
     stylesheets or javascripts -- and here's were it gets interesting
     -- so that you can do asset packaging (reference all of your
     javascripts or stylesheets in one main file to reduce server
     requests and speed page load time).

     What's really cool here is that the stylesheets and javascripts
     now track their own dependencies so your files all report an
     accurate LAST-MODIFIED date/time.  This keeps your server from
     having to re-serve your css and js files unless their content has
     truly changed.

     Fast page loads for visitors, reduced bandwidth and server
     requirements for you!


WHY USE STYLES 'N SCRIPTS
John originally suggested this extension so that should be good enough for you. But in case you're still wondering, this extension offers:

   * Administrator or Developer permissions for accessing CSS or JS files

   * Better caching for these files (their cache isn't flushed every 5
     minutes like pages but, instead only when updates occur).  So your
     user's browser cache can go to work -- speeding page loads and
     minimizing server hits.

   * Separation of concerns - lets extensions that work with pages not
     get tripped up by CSS and JS files (examples include keyword
     searches that don't find text in your stylesheets, adding meta
     keyword or descriptions to pages but not stylesheets, using
     WYSIWYG or WYSIWYM editors like TinyMCE or FCKEditor to edit your
     pages but not your css or js files.  This also opens the door to
     extensions aimed at working just with css or js files (look for
     css & js minification coming soon).

   * Declutter the Pages tree view.  Now it only needs to show the
     content - not the assets.


WHERE TO GET IT
https://secure.svnrepository.com/s_swanki/open/radiant/extensions/styles_n_scripts/tags/v0.3

Requirements: Radiant 0.6.6+
_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to