Most modules include a module template that defines the default HTML rendered by the module.
To enable the template to access the module configuration information in the [module] section, all module templates should specify the following at the top of the source file:
<%page args="module, h"/>
Mako template
$SPLUNK_HOME/etc/apps/<appName>/appserver/modules/<moduleName>
<%namespace name="lib" file="//lib.html" import="*"/> /* For css() utility, only */ <%inherit file="//layout/base.html" />
| add_script_block() | Wraps the script_tags() template utility. |
| csrf_hidden_input() | Called within any HTML form that requires POST for CSRF protection. |
| get_script_block() | Renders any 'script_block' values within the attributes passed to the template as an argument. |
| script_tags() | Includes each of the specified files in script source tags. |
| stylesheet_tags() | Includes each of the specified files in link tags. |
| css() | Provides a convenience wrapper to the stylesheet_tags() utility. |