NAME
template-tool - Slash templates management tool
SYNOPSIS
template-tool [options] [template] ... [ -u virtual_user ] [ -i template_id ] [ -f filename ] [ -O directory ] [ -P page ] [ -S section [ -P page ] [ template[ ...] ] ]
DESCRIPTION
template-tool creates, saves, updates or deletes Slash templates.
OPTIONS
- -h
-
Print a help message and exit.
- -v
-
Show version.
- -u virtual_user
-
virtual user as defined in /etc/dbix-password.conf. Defaults to slash.
- -B
-
Generate a blank template. You should specify the name of the file after the option.
- -d
-
Dump template.
- -i tpid
-
Use template id tpid instead of template name.
- -m pattern
-
Only perform list and get actions if the template matches pattern.
- -l
-
List template(s) and their description.
- -f filename
-
Specify the filename of template being dumped or created (single template).
- -r template[ ...]
-
Delete template(s).
- -s file[ ...]
-
Create/save/update template from the given file. Section, page and template name are derived from file name. If you supply a section and/or page and you're reading files out of a directory, those templates will be saved with those sections. If you want to read from a directory and not have your section or page changed, don't provide these arguments.
- -O directory
-
Specify the directory where templates are saved and created. If omitted, default to ./
- -P
-
comma-separated list of plugin names
- -S section [ -P page ] [ template[ ...] ] ]
-
Specify the section, page and template for listing and dumping functions. If template[ ...] is omitted, then it defaults to all templates in the section/page. If both page and section are defined, then it specifies the templates for a page and section. All other template fields should be modified via web interface.
- -c template[ ...]
-
Compile template into Perl code for testing. Compiled template is saved as template.ttc in the destination directory.
AUTHOR
This manual page was written by Eric Van Buggenhaut <[email protected]>, for the Debian GNU/Linux system (but may be used by others).