Ticket #74 (closed enhancement: wontfix)

Opened 2 years ago

Last modified 4 weeks ago

Whitespace suppression on include verb

Reported by: scorfield Owned by: scorfield
Type: enhancement Priority: low
Milestone: Component: Miscellaneous
Version: 5.0 Severity: normal
Keywords: Cc:

Description

Jason Daiger suggested adding an output="true|false" option to <include> that could cause the verb to be compiled inside <cfsilent> instead of <cfoutput>.

Attachments

Change History

Changed 2 years ago by scorfield

In line with ColdFusion's output= on both cfcomponent and cffunction tags, it might make sense to have output= on both circuit and include tags.

Changed 2 years ago by scorfield

  • owner changed from sean@corfield.org to scorfield
  • priority changed from normal to low
  • status changed from new to assigned
  • type changed from defect to enhancement

Changed 2 years ago by afabian

Rather than adding a new tag, why not use the ContentVariable system here. You could add ContentVariable support to <include/>, and maybe even add on to that a special variable ('null', or something similar), that gets rid of the output. So <include template="xxx" contentvariable="null"/> runs xxx silently. Since the introduction of the implict circuits feature, having contentvariables on includes would be more useful anyway.

Changed 2 years ago by scorfield

  • status changed from assigned to closed
  • resolution set to wontfix

Given that include already supports contentvariable, you can easily use afabian's suggestion today:

<include template="..." contentvariable="null" />

and just don't use the variable called "null". Marking this "wontfix" since there's a good workaround.

Changed 4 weeks ago by amog1

  • milestone deleted

I'm closing it according to the last comment.
----------

tatoo air force ones

Note: See TracTickets for help on using tickets.