template-tool(1)

template-tool1

Slash templates management tool

Usage

template-tool [options] [template] ... [-u virtual_user] [-i template_id] [-f filename] [-O directory] [-P page] [-S section [-P page] [template []]]

Overview

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.

Releases

Unchanged in 2 releases since Debian 3.1 (Sarge).

  1. 3.1–4.0

Author

This manual page was written by Eric Van Buggenhaut <[email protected]>, for the Debian GNU/Linux system (but may be used by others).

From slash 2.2.6-8etch1 in Debian 4.0 (Etch). Parsed by carta from the page's man source.