text_templates::create_html_content (private)

 text_templates::create_html_content [ -template_id template_id ] \
    -set_var_call set_var_call -filename filename

Defined in packages/acs-tcl/tcl/pdf-procs.tcl

Create the filled out template as html

Switches:
-template_id (optional)
The template to use for the preview. It is assumed that the template_id is the same as the revision_id to be used for the template.
-set_var_call (required)
procedure-name which sets the variables used
-filename (required)
Author:
Christian Langmann <C_Langmann@gmx.de>
Created:
2005-07-07

Partial Call Graph (max 5 caller/called nodes):
%3 text_templates::create_pdf_content text_templates::create_pdf_content (public) text_templates::create_html_content text_templates::create_html_content text_templates::create_pdf_content->text_templates::create_html_content template::adp_compile template::adp_compile (public) text_templates::create_html_content->template::adp_compile

Testcases:
No testcase defined.
Source code:

    {*}$set_var_call

    # retrieve template and write to tmpfile
    # set content [content::get_content_value $template_id]
    set file [open $filename]
    fconfigure $file -translation binary
    set content [read $file]

    # parse template and replace placeholders
    eval [template::adp_compile -string $content]
    set final_content $__adp_output

    return $final_content
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: