Categories:
Author:
Current version:
0.1
About It:
Get it:
Rate it:
Flag it:
stm_js_css_bundler
Usage css_bundle
Example 1.
<txp:css_bundle n="default, foo, bar" />
Output
<link rel="stylesheet" type="text/css" media="screen" href="http://my.host.com?css_bundle[]=default&css_bundle[]=foo&css_bundle[]=bar" />
default, foo, bar = names of internal textpattern stylesheets
Example 2.
<txp:css_bundle />
Fetches all available stylesheets and merges them in alphabetical order
Usage js_bundle
Example 1.
<txp:js_bundle n="default, foo, bar" />
Output
<script type="text/javascript" src="http://localhost/textpattern?js_bundle[]=default&js_bundle[]=foo&js_bundle[]=bar"></script>
default, foo, bar = names of internal textpattern javascripts
Example 2.
<txp:js_bundle />
Fetches all available javascripts and merges them in alphabetical order
Keywords/tags:
Initially released:
August 14. 2007Posted here:
14 Aug 2007Article modified:
15 Aug 2007









Comments/questions? Leave a message in the form.
Commented (1)
Looks great, will try it out on my next TXP site. BTW, your stw_javascript is a little buggy (lots of missing Javascript errors) but absolutely vital to development. Thanks for your great plugins.
Subscribe to this article's comments RSS feed. [ ? ] View Recent Comments across the site. Get a Gravatar.