Home > Applications > m2html > @template > template.m

iFit/template

PURPOSE ^

TEMPLATE HTML Template Toolbox Constructor

SYNOPSIS ^

function tpl = template(root,unknowns)

DESCRIPTION ^

TEMPLATE HTML Template Toolbox Constructor
  TPL = TEMPLATE returns a template object using default values for the
  root path of the template files ('.') and for the way of handling unknown
  replacement fields (default is 'remove').
  TPL = TEMPLATE(ROOT) allows to specify the root path of the template files
  that will then be provided relative to this path.
  TPL = TEMPLATE(ROOT,UNKNOWNS) also allows to specify the strategy to apply
  to unkown fields. UNKNOWNS may be:
    * 'keep' to do nothing
    * 'remove' to remove all undefined fields
    * 'comment' to replace undefined fields by a warning HTML comment.

  The template class allows you to keep your HTML code in some external 
  files which are completely free of Matlab code, but contain replacement 
  fields. The class provides you with functions which can fill in the 
  replacement fields with arbitrary strings. These strings can become very 
  large, e.g. entire tables.
  See the PHPLib: <http://www.sanisoft.com/phplib/manual/template.php>
  See also GET, SET, PARSE

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Mon 26-Nov-2018 15:08:42 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1