# \[ANN\] Styles 'n Scripts Extension v0.3 Release

**URL:** <https://www.ruby-forum.com/t/ann-styles-n-scripts-extension-v0-3-release/138789>\
**Category:** Radiant CMS\
**Created:** [May 27, 2008, 8:17pm UTC](https://www.ruby-forum.com/t/ann-styles-n-scripts-extension-v0-3-release/138789 "2008-05-27T20:17:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahadewa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9e8a1a/32.png) [@mahadewa](https://www.ruby-forum.com/u/mahadewa)\
**Post date:** [May 27, 2008, 8:17pm UTC](https://www.ruby-forum.com/t/ann-styles-n-scripts-extension-v0-3-release/138789/1 "2008-05-27T20:17:33Z")

</div>

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  
 or 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).

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](https://secure.svnrepository.com/s_swanki/open/radiant/extensions/styles_n_scripts/tags/v0.3)

Requirements: Radiant 0.6.6+

---

<div class="post-metadata">

**Author:** ![mahadewa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9e8a1a/32.png) [@mahadewa](https://www.ruby-forum.com/u/mahadewa)\
**Post date:** [May 27, 2008, 8:45pm UTC](https://www.ruby-forum.com/t/ann-styles-n-scripts-extension-v0-3-release/138789/2 "2008-05-27T20:45:57Z")

</div>

On 5/27/08, Chris P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> ```
> <style> or <script> html tags.
> having to re-serve your css and js files unless their content has
> 
> ```
> 
> - Administrator or Developer permissions for accessing CSS or JS files  
> WYSIWYG or WYSIWYM editors like TinyMCE or FCKEditor to edit your
> 
> Requirements: Radiant 0.6.6+
> 
> * * *
> 
> Radiant mailing list  
> Post: removed\_email\_address@domain.invalid  
> Search: [http://radiantcms.org/mailing-list/search/](http://radiantcms.org/mailing-list/search/)  
> Site:  
> [http://lists.radiantcms.org/mailman/listinfo/radiant](http://lists.radiantcms.org/mailman/listinfo/radiant)

Great! Thanks for your effort building this!

–  
Martins Grunskis
