template::register_mime_type (public)

 template::register_mime_type mime_type file_extension header_preamble

Defined in packages/acs-templating/tcl/mime-procs.tcl

sets the template_extension and template_header_preamble nsv's with the provided data.

Parameters:
mime_type
file_extension
header_preamble

Partial Call Graph (max 5 caller/called nodes):
%3

Testcases:
No testcase defined.
Source code:
    if { [info exists template_extension($mime_type)] } {
        nsv_unset template_extension($mime_type)
    }
    if { [info exists template_header_preamble($mime_type)] } {
        unset template_header_preamble($mime_type)
    }

    nsv_set template_extension $mime_type $file_extension
    nsv_set template_header_preamble $mime_type $header_preamble
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: