template

a simple template tool for shell scripts
Log | Files | Refs

template.1 (924B)


      1 .TH TEMPLATE 1 
      2 .SH NAME
      3 template \- a simple templating tool
      4 .SH SYNOPSIS
      5 .B template 
      6 .B [ \-h ] [ \-d  delim ] [ file ]
      7 .SH DESCRIPTION
      8 .ll 80 
      9 Template is a simple templating tool, it allows for environment variables to  
     10 be inserted into a template file. The tool can be used to generate any number 
     11 of things, including log files, and static sites. 
     12 
     13 A file can be given at any of the arguemnts if wanted; specifying '-' will 
     14 use stdin as the template file, giving no file will do the same.
     15 .SH OPTIONS
     16 .TP
     17 .B \-h
     18 prints out a simple help message
     19 .TP
     20 .B \-d delim 
     21 sets the deliminer character, the default is ':'
     22 
     23 .SH Example
     24 In the template file, place the name of an environment variable inbetween the 
     25 deliminer charaters.
     26 
     27 <p>:DISPLAY:</p>
     28 
     29 $ template example.html
     30 
     31 <p>:0</p>
     32 
     33 .SH Notes
     34 Delim can only be 1 character long, and UTF8 is not supported as a char is 
     35 used to store the value
     36 
     37 .SH BUGS
     38 Hopefully none