<cfif thisTag.executionMode EQ "end">
<cfexit method="exittag" />
</cfif>
Just for reference, custom tag invocation can take any of these forms:
<cfmodule name="myTag" />
<cf_myTag />
<cfmodule template="myTag.cfm" />
<cfimport prefix="t" taglib="." /><t:myTag />
All four forms are equivalent if 'myTag.cfm' is in the same directory.
If it is missing, the last two forms will immediately fail, while the
first two will also scan registered custom tag paths looking for
'myTag.cfm'.
Your example is a specialization of the third form, where the explict
tag path is computed based on a mapping, rather than the current
template path. Regardless, it's a fixed path to check (last two
forms), not a name to search for (first two forms).
cheers,
barneyb
--
Barney Boisvert
bboi...@gmail.com
http://www.barneyb.com/
LOL don’t start this again J
http://blog.kukiel.net/2009/09/do-you-close-your-coldfusion-tags.html
Most commented post I made.
I how ever agree with Todd’s last comment
“whatever” J
Paul.
LOL don’t start this again
Most commented post I made.
I how ever agree with Todd’s last comment
“whatever”
Paul.
I happen to like the closing tags because I can see if my markup is
balanced without reading the tag names. But I'm with you, "whatever".
A personal stylistic decision, outside custom tags that aren't
written defensively.
cheers,
barneyb
On Thu, Nov 5, 2009 at 9:13 AM, Todd Rafferty <to...@getrailo.org> wrote:
> Why is why I hate it when people do: <cfreturn data />. There's no
> <cfreturn>data</cfreturn> equivalent. Not all tags need to be closed and
> imho, shouldn't be closed, but whatever. :)
>
> ~Todd Rafferty ** Volunteer Railo Open Source Community Manager **
> http://getrailo.org/
>
--
-- Michael Offner-Streit CTO Railo Technologies GmbH michael...@railo.ch www.getrailo.com Mailing List (english): http://groups.yahoo.com/group/railo_talk/ Mailing List (german): http://de.groups.yahoo.com/group/railo/ Linked in: http://www.linkedin.com/e/gis/71368/0CF7D323BBC1 Issue Tracker: http://jira.jboss.org/jira/browse/RAILO Blog: http://www.railo-technologies.com/blog
Or - to put it another way - how about making feature request(s) for
CFEclipse and CFBuilder, detailing the functionalities you want them
to have? :)
Working on that. :)
It's going to take a while - need to get a suitable parser created
first - but being able to define a set of formatting rules and applied
either on-demand and/or at key points is definitely one of the goals.
I mean, compare this simple conditional:
<cfif This EQ That>
a
<cfelseif This GT That>
b
<cfelse>
c
</cfif>
Versus:
<cfif condition="This EQ That">
<cftrue>
a
</cftrue>
<cffalse>
<cfif condition="This GT That">
<cftrue>
b
</cftrue>
<cffalse>
c
</cffalse>
</cfif>
</cffalse>
</cfif>
Eugh. :&