template::get_mime_type (public)

 template::get_mime_type

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

gets the mimetype from the outputheaders and if missing guesses text/html

Testcases:
No testcase defined.
Source code:
    if {[ns_conn isconnected]} {
        set mime_type [ns_set iget [ns_conn outputheaders] "content-type"]
    } else { 
        set mime_type {} 
    }
    if { $mime_type eq "" } {
        set mime_type "text/html"
    }

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