$Web Output Type: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{DISPLAYTITLE:$Web_Output_Type}} <span class="pageSubtitle"><section begin="desc" />Retrieve current output mime-type<section end="desc" /></span> $Web_Output_Type retrieves ...") |
mNo edit summary |
||
(9 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:$Web_Output_Type}} | {{DISPLAYTITLE:$Web_Output_Type}} | ||
<span class="pageSubtitle" | <span class="pageSubtitle">Retrieve current output mime-type</span> | ||
<var>$Web_Output_Type</var> retrieves the current output mime-type set either by JANUS WEB ON rules or by the <var>$Web_Type</var> function. | |||
$Web_Output_Type retrieves the current output mime-type set either by JANUS WEB ON rules or by the $Web_Type function. | |||
==Syntax== | ==Syntax== | ||
<p class="syntax">< | <p class="syntax"><span class="term">%str</span> = $Web_Output_Type | ||
</p> | |||
<var>$Web_Output_Type</var> takes no arguments and returns a string. | |||
$Web_Output_Type takes no arguments and returns a string. | |||
This function might prove useful in determining the meaning of the contents of the output stream in code that is shared among many applications — though it is highly dependent on those applications having already set <var>$Web_Type</var>. | |||
This function might prove useful in determining the meaning of the contents of the output stream in code that is shared among many applications | |||
The current output contents can be retrieved with <var>[[$Web_Output_Content]]</var>. | |||
The current output contents can be retrieved with [[$Web_Output_Content]]. | |||
==See also== | |||
<ul> | |||
<li><var>[[$Web_Output_Content]]</var> | |||
<li><var>[[$Web_Type]]</var> | |||
</ul> | |||
[[Category:Janus Web Server $functions|$Web_Output_Type]] | [[Category:Janus Web Server $functions|$Web_Output_Type]] |
Latest revision as of 22:13, 5 June 2013
Retrieve current output mime-type
$Web_Output_Type retrieves the current output mime-type set either by JANUS WEB ON rules or by the $Web_Type function.
Syntax
%str = $Web_Output_Type
$Web_Output_Type takes no arguments and returns a string.
This function might prove useful in determining the meaning of the contents of the output stream in code that is shared among many applications — though it is highly dependent on those applications having already set $Web_Type.
The current output contents can be retrieved with $Web_Output_Content.