Content last modified Tuesday 24 August 2021
hop to #bottom
Categories:
Author:
Current version:
0.1
About It:
Get it:
Rate it:
  • Helpful?
  • 0 Yes
  • 0 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!

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

You know you want to visit the Archives.
Published with Textpattern