Line 2: |
Line 2: |
| | | |
| === NAME === | | === NAME === |
− | esmith::template - Utilities for e-smith server and gateway development | + | esmith::template - Utilities for e-smith server and gateway development<br /> |
| + | |
| In a root terminal you can do the command below if you want to display the up-to-date content | | In a root terminal you can do the command below if you want to display the up-to-date content |
| perldoc esmith::templates | | perldoc esmith::templates |
Line 14: |
Line 15: |
| | | |
| === DESCRIPTION === | | === DESCRIPTION === |
− | This is the interface to the E-Smith templating system. For an overview of how the system works, see section "3.4 Templated Configuration System" of the Dev Guide. | + | This is the interface to the E-Smith templating system. For an overview of how the system works, see section [[SME_Server:Documentation:Developers_Manual#Configuration_file_templates| Templated Configuration System]] of the Dev Guide. |
| | | |
| 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. |
Line 49: |
Line 50: |
| 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 79: |
Line 80: |
| Full path to the file which fill result from this template. | | Full path to the file which fill result from this template. |
| For example, ’/etc/hosts’. | | For example, ’/etc/hosts’. |
| + | TEMPLATE_PATH="/etc/motd" |
| | | |
| ===== TEMPLATE_EXPAND_QUEUE ===== | | ===== TEMPLATE_EXPAND_QUEUE ===== |
Line 186: |
Line 188: |
| | | |
| === SEE ALSO === | | === SEE ALSO === |
− | Section 3.4 "Templated Configuration System" of the E-Smith Dev Guide
| + | [[SME_Server:Documentation:Developers_Manual#Configuration_file_templates| Templated Configuration System]]<br /> |
| + | |
| + | [http://wiki.contribs.org/Text::Template Text::Template] |
| | | |
| === AUTHOR === | | === AUTHOR === |
Line 192: |
Line 196: |
| For more information, see http://www.e-smith.org/ | | For more information, see http://www.e-smith.org/ |
| | | |
− | [[Category:Howto]]
| + | |
| [[Category:SME Server Development Framework]] | | [[Category:SME Server Development Framework]] |
| [[Category:Development Tools]] | | [[Category:Development Tools]] |
− | [[Category:SME9-Development]]
| |