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 - the name of the template to be used in making the file
file_name - the name of the file to be created

Partial Call Graph (max 5 caller/called nodes):
%3 template::adp_compile template::adp_compile (public) template::adp_eval template::adp_eval (public) template::util::read_file template::util::read_file (public) template::util::write_from_template template::util::write_from_template template::util::write_from_template->template::adp_compile template::util::write_from_template->template::adp_eval template::util::write_from_template->template::util::read_file

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
[ hide source ] | [ make this the default ]
Show another procedure: