- Publicity: Public Only All
mime-procs.tcl
Provides procedures needed to determine mime type required for the client browser, as well as other additional header information.
- Location:
- packages/acs-templating/tcl/mime-procs.tcl
- Created:
- 12 January 2001
- Author:
- Shan Shan Huang <shuang@arsdigita.com>
- CVS Identification:
$Id: mime-procs.tcl,v 1.8 2017/08/07 23:48:02 gustafn Exp $
Procedures in this file
- template::get_mime_header_preamble (public)
- template::get_mime_template_extension (public)
- template::get_mime_type (public)
- template::register_mime_type (public)
Detailed information
template::get_mime_header_preamble (public)
template::get_mime_header_preamble mime_type
- Parameters:
- mime_type (required)
- Returns:
- the mime_header preamble if exists otherwise ""
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
template::get_mime_template_extension (public)
template::get_mime_template_extension mime_type
- Parameters:
- mime_type (required)
- Returns:
- the template extension associated with mime_type (default "adp")
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
template::get_mime_type (public)
template::get_mime_type
gets the mimetype from the outputheaders and if missing guesses text/html
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
template::register_mime_type (public)
template::register_mime_type mime_type file_extension header_preamble
sets the template_extension and template_header_preamble nsv's with the provided data.
- Parameters:
- mime_type (required)
- file_extension (required)
- header_preamble (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.