> 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...

That won't make any difference in this case. If you place closing slashes in
your CFMODULE tags, they'll run twice just like any other custom tag call.
These would all be equivalent, assuming you had a custom tag in the same
directory as the calling page named foo.cfm:

<cf_foo />
<cf_foo></cf_foo>
<cfmodule template="foo.cfm" />
<cfmodule template="foo.cfm"></cfmodule>

In addition, using CFMODULE may cause some other unintended consequences. If
you're using nested custom tags, you'll have to be careful to make sure to
close the base tags and the sub tags. For example, if you had this:

<cf_foo>
        <cf_bar>
</cf_foo>

and converted it to CFMODULE, you might then have this:

<cfmodule template="foo.cfm">
        <cfmodule template="bar.cfm">
</cfmodule>

However, that would cause a problem, since CF would associate the closing
CFMODULE tag with the second opening tag, not the first. So, you'd need to
do this:

<cfmodule template="foo.cfm">
        <cfmodule template="bar.cfm" /> <!--- note the closing slash --->
</cfmodule>

That said, there are plenty of good reasons to use CFMODULE anyway, despite
the fact that it doesn't help in this case.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Get the mailserver that powers this list at http://www.coolfusion.com

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

Reply via email to