template::util::write_from_template (private)
template::util::write_from_template template file_name
Defined in packages/acs-templating/tcl/doc-tcl-procs.tcl
takes a .adp template name and the name of the file to be written and creates the file; also puts out a notice before
- Parameters:
- template (required)
- the name of the template to be used in making the file
- file_name (required)
- the name of the file to be created
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: upvar template_name template_name set template_name $template uplevel { set read_template [template::util::read_file $template_name] set code [template::adp_compile -string $read_template] set output [template::adp_eval code] } upvar output output template::util::write_to_file $file_name "$output"XQL Not present: Generic, PostgreSQL, Oracle