You will have to watch out for Custom tags and CFModule, as closing
the tag this way will execute the file twice


On 22/11/05, Charlie Griefer <[EMAIL PROTECTED]> wrote:
> It's pure preference.  Some people like it because it maintains
> consistency in their markup (XHTML tags are self-closing, so apply the
> same technique to your CFML tags).
>
> It has no impact (good or bad) on performance (that I'm aware of).
> It's neither "right" nor "wrong" to do it or not to do it.
>
> I like it.  Others don't.  It's completely a matter of whatever floats
> yer boat :)
>
> On 11/22/05, Charlie Hanlon <[EMAIL PROTECTED]> wrote:
> > I have noticed in many code samples that I see/learn from, the use of a
> > forward-slash in this fashion
> >
> > <cfset variables.myVar = "someValue" />
> >
> > I understand that this represents that this particular tag has no closing
> > tag.  Is this a habit I should adopt in my coding and if so, should I use
> > this syntax on every cf tag that does have its respective closing tag.  For
> > example, the cfparam tag
> >
> > <cfparam name="scope.myVar" default="" />
> >
> > thanks in advance
> > charlie
> >
> >
> > Charlie Hanlon
> > Web Apps Developer
> > Food Service Enablers, Inc.
> > www.fsenablers.com
> >
> > The People. The Platform. The Products.
> > Make the Difference
> >
> >
> >
> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224971
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to