The ezscript template operator
Registered in extension/ezjscore/autoloads/eztemplateautoload.php by the class ezjscPackerTemplateFunctions (extension/ezjscore/autoloads/ezjscpackertemplatefunctions.php).
The same class also registers: ezscript_require, ezscript_load, ezscriptfiles, ezcss, ezcss_require, ezcss_load, ezcssfiles.
Parameters
| Parameter | Type | Required | Default |
|---|---|---|---|
script_array | array | yes | array() |
type | string | no | 'text/javascript' |
language | string | no | '' |
charset | string | no | 'utf-8' |
pack_level | integer | no | 2 |
Example
Built from the parameter list above; the values are placeholders (the operator's template hints decide whether it takes an input).
$value|ezscript( array(), 'text/javascript', 'language', 'utf-8', 2 )In a shipped template
The first use in the templates of this installation, design/admin/templates/class/datatype_list.tpl line 153:
ezscript( array( 'page/class_datatypes.js' ) )Related
Generated by ./console exp:help:examples from extension/ezjscore/autoloads/eztemplateautoload.php, extension/ezjscore/autoloads/ezjscpackertemplatefunctions.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.