cf guru's, from what ive learned, will most likely say to shy away
from placing anything in application.cfm that must be rendered as
output.  use the application.cfm file for setting variables, and
getting your application fired up.  thats all.  use custom tags or
whatever else you would like for display/meta tag information.

why make the cf server parse through all that html display crap, for
EVERY PAGE request?  unnecessary overhead.  i can say this tho' in the
defence of newbies on the list, i think i, as well as a buncha people
around here, probably had that thought cross your mind at least
once...

"Heck, i can make my header/footer show up in every page if i throw it
into the application.cfm file, since its run every time a request is
made"

then i was told, and now its just bad practice and i never did it again :)

me

On Thu, 22 Jul 2004 08:49:43 -0700, Charlie Griefer <[EMAIL PROTECTED]> wrote:
> They do (well, they -can-).
>
> Application.cfm is really just like any other CF template that runs...it's
> just implictly pre-pended to all applicable files.  The question is, do you
> put any HTML in there?  I've heard where it's considered bad practice to put
> display code into the Application.cfm.  I interpret this as any HTML (even
> meta tags).  I could be off base here, or it could just be that there really
> is no definitive 'rule'.
>
> I've just been in the habit of keeping all HTML out of there.  It's sole
> purpose is to control the template files that reside beneath it.  Not to
> display anything to the screen (or the source code).
>
>
> ----- Original Message -----
> From: "Bryan Stevenson" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Thursday, July 22, 2004 8:38 AM
> Subject: Re: SEO Keywords, etc in Application.cfm? OT?
>
> > >Why would you place meta tags in the Application.cfm file? Meta tags
> placed
> > >there won't get rendered as HTML correct?
> >
> > They sure do ;-)
> >
> > Bryan Stevenson B.Comm.
> > VP & Director of E-Commerce Development
> > Electric Edge Systems Group Inc.
> > t. 250.920.8830
> > e. [EMAIL PROTECTED]
> >
> >
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to