User Tools

Site Tools


esmith:template

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
esmith:template [2015/05/22 08:11]
stephdl created
esmith:template [2019/06/05 19:48] (current)
Line 17: Line 17:
 esmith::template exports a single function, processTemplate, which, as you might guess, processes sets of templates into a single output file. esmith::template exports a single function, processTemplate, which, as you might guess, processes sets of templates into a single output file.
  
-==== Template Variables ====+===== Template Variables =====
  
 The following variables are available to all templates. The following variables are available to all templates.
  
-===== $confref =====+==== $confref ====
 DEPRECATED.  Contains a reference to the hash passed in via CONFREF.  If none was given it defaults to a tied esmith::config hash. DEPRECATED.  Contains a reference to the hash passed in via CONFREF.  If none was given it defaults to a tied esmith::config hash.
  
-===== $DB =====+==== $DB ====
 Contains a reference to an esmith::ConfigDB object pointing at the default configurations.  This is to be used to call methods like "$DB-"services> and *not* for alterting the database. Contains a reference to an esmith::ConfigDB object pointing at the default configurations.  This is to be used to call methods like "$DB-"services> and *not* for alterting the database.
  
Line 48: Line 48:
                                TEMPLATE_PATH => $output_file                                TEMPLATE_PATH => $output_file
                             });                             });
- +  
              $filled_in_template = processTemplate({ CONFREF       => \%config,              $filled_in_template = processTemplate({ CONFREF       => \%config,
                                                      TEMPLATE_PATH => $output_file                                                      TEMPLATE_PATH => $output_file
Line 187: Line 187:
 http://docs.nethserver.org/projects/nethserver-devel/en/latest/templates.html http://docs.nethserver.org/projects/nethserver-devel/en/latest/templates.html
  
-[http://wiki.contribs.org/Text::Template Text::Template] +http://wiki.contribs.org/Text::Template
 ===== AUTHOR ===== ===== AUTHOR =====
 Mitel Networks Corporation Mitel Networks Corporation
Line 194: Line 193:
  
 {{tag> neth-development sme-development }} {{tag> neth-development sme-development }}
- 
-[[Category:SME Server Development Framework]] 
-[[Category:Development Tools]] 
  
esmith/template.1432282301.txt.gz · Last modified: 2019/06/05 19:48 (external edit)