Thanks for confirming that!
Pages are already striped down substantially and formated conditionally
using lots of CSS. There are just these little features here that not
every page needs. Maybe 20 out of 40 would use the little script below -
then another one maybe 10 out of 40.
I am already using a sort of custom framework and have shaved changes to
a minimum. 

Thanks....
As for Fusebox - I have tried to become interested a few times - but I
have found no real benefit over the increased development time for the
sites I am using. - but I definately agree with what your saying.
jay miller

Barney Boisvert wrote:


CFINCLUDE is faster than CFMODULE or custom tags, because CFINCLUDE runs
in

the same memory space as the calling page.  Before you start making
every

page include the same 20 includes, however, I'd see if I could make my
pages

a little more modular.  If every page has the same 20 snippets, then I

almost guarentee that you can abstract those down in the a far smaller

number of snippets by joining some of them together.



You might also look into some 'page assembly framework' to help you out.

Fusebox 3 is one (plus a whole lot more), although i'm sure there are
more

layout-centric options out there.  Bottom line, the more work you can do
up

front to ease later modificaions, the better off you'll be.



barneyb



  

-----Original Message-----

From: Jason Miller [ mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
]

Sent: Monday, March 17, 2003 10:56 AM

To: CF-Talk

Subject: Includes Vs Tags - help?





Hello list -

While developing this page - I have a ton of conditional tiny snippets

which I started putting in includes. I heard that includes where faster

in most cases than calling custom tags.

Before I headed down this road I would like to confirm -

Anyone have advice on that? It is really simply pieces of code I am

running - it's just that it appears in So many places I need to try to

centralize it.



Sample pieces are for example something like this -

<cfif PrinterFriendly EQ "Yes">

<a href= "javascript:window.print();" <javascript:window.print();>
>Print This Page.</a><a

href="<cfoutput>#CGI.PATH_INFO#</cfoutput>">Go back here.</a>

<cfelse>

&nbsp;&nbsp;<a

href="<cfoutput>#CGI.PATH_INFO#</cfoutput>?PrinterFriendly=Yes"><img

src="/img/icon_NarrowPrintVersion1.gif" hspace="0" vspace="0"

border="0"></a>

</cfif>



Clients are changing their mind so much - if I have to hand code this on

30 pages and change tomorrow 30x - it's a huge hassle.

Thanks for any advice.

I am only really concerned about speed/processing time.

Thaks,

Jason Miller







    


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