Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

ezscript template operator

The ezscript template operator: 5 parameter(s), registered by ezjscPackerTemplateFunctions.

Download as PDF

Address: https://doc.exponential.earth/learninminutes/exphelp/viewer/examples/template-operators/ezscript.md

On this page

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

ParameterTypeRequiredDefault
script_arrayarrayyesarray()
typestringno'text/javascript'
languagestringno''
charsetstringno'utf-8'
pack_levelintegerno2

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' ) )}

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.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x