cfprocessingdirective

Description

Suppresses extra white space and other output, produced by CFML within the tag's scope.

Category

Data output tags

Syntax


<cfprocessingdirective

  suppressWhiteSpace = "Yes" or "No">

... any CFML tags here ...

</cfprocessingdirective> 

See also

cfcol, cfcontent, cfoutput, cftable

Attributes

Attribute
Description
suppressWhiteSpace
Required. Boolean indicating whether to suppress the white space and other output generated by the CFML tags within the cfprocessingdirective block.

Usage

If a cfprocessingdirective tag's scope includes another cfprocessingdirective tag, the inner tag's settings override the enclosing tag's settings within the body of the inner tag. If the enclosing tag specifies settings that the inner tag does not, those settings remain in effect within the inner tag's scope.

cfprocessingdirective settings do not apply to templates included by cfinclude, cfmodule, custom tag invocation, etc.

Example

This example shows the use of a nested cfprocessingdirective tag. The outer cfprocessingdirective tag suppresses unnecessary whitespace during computation of a large table, the inner cfprocessingdirective tag retains all whitespace to output the preformatted table.

<cfprocessingdirective suppressWhiteSpace = "Yes">

... any CFML tags here ...

<cfprocessingdirective suppressWhiteSpace = "No">

<cfoutput>#interesting_stuff#</cfoutput>

</cfprocessingdirective>



Banner.Novgorod.Ru