You could of course steer away from using <cf_myCT> and instead just use the
<cfmodule file="myCF"> tag...  Not as eloquent, but if that's the only real
rule breakdown, then you can disregard that feature...

-----Original Message-----
From: Sean A Corfield [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 13, 2003 9:57 PM
To: CF-Talk
Subject: Re: XML-type Syntax with CF Tags


On Monday, Jan 13, 2003, at 19:31 US/Pacific, Dave Carabetta wrote:
> On the one hand, since CFML looks so much like HTML's tag-based
> syntax, I'm
> guessing people do it for consistency to comply with XHTML standards.

Yes, I do it so that my source files look consistent with XHTML.

> Further, in certain instances (i.e., custom tags), does
> the trailing slash cause the tag to be executed twice? For example,
> would
> the following syntax cause myCT to be run twice?

Yes, invoking a custom tag with a closing tag like this:

> <cf_myCT />

is equivalent to invoking it with an empty body:

        <cf_myCT></cf_myCT>

My custom tags - few in number - are coded to be called like that and 
behave correctly.

Sean A Corfield -- http://www.corfield.org/blog/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to