Content last modified Monday 6 March 2017
hop to #bottom
Categories:
Author:
Current version:
0.1
About It:
Get it:
Rate it:
  • Helpful?
  • 0 Yes
  • 0 No
Flag it:
Contact Reason [ ? ]

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

stm_javascript ist required

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

Article Request Count:
Keywords/tags:
Initially released:
August 14. 2007
Posted here:
14 Aug 2007
Article modified:
15 Aug 2007

Comments/questions? Leave a message in the form.

Your comment will NOT be submitted until you click the 'Submit' button on the next pageload.

Commented (1)

Jonathan:

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.

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.
Published with Textpattern