I've was thinking about this post last night - don't ask.

To give you a little background im mainly a solid Fuseboxer so issues
of layout have always been in the back of my head as it is something
FB accomodates for. But the one thing i love about the move from FB2
to FB3 was having the layout file in one file.

Well after reading this post it got me thinking about the Layout
process again (mainly because i am also looking at doing a small app
without FB for a change). And i was wondering why the <cfsavecontent>
tag isn't used here?

Basically your page would be:

<cfsavecontent variable="content">
Content Goes Here
</cfsavecontent>

This would allow several options at the bottom of the page

1) <cfinclude template="layout.cfm"> 
This would take the variable content and display its contents

2) <cfmodule template="layout.cfm" body="#content#">

3) <cf_foo>#content#</cf_foo>

4) Plus you could even put the layout template reference in the
onRequestEnd.cfm and put some logic for each page?

Just my 2 cents

Andy
www.andyjarrett.co.uk

On Wed, 1 Dec 2004 09:12:08 +0100, Micha Schopman
<[EMAIL PROTECTED]> wrote:
> Personally, the advantages of cfmodule outweigh those of cfinclude. The
> performance hit of cfmodule is really low, and cfmodule provides you
> with encapsulation. Variables defined within a template called by
> cfmodule have no effect on the executed code outside that template
> (unless you are using variables in request, session, application,
> client, server, or use the caller).
> 
> What you need to keep in mind, when you call a cfmodule template within
> a CFC, and use caller in that template, the variable is returned to the
> CFC. So if you want to use returned data from the template, you need to
> put business logic in your CFC which handles that.
> 
> Micha Schopman
> Software Engineer
> 
> Modern Media, Databankweg 12 M, 3821 AL  Amersfoort
> Tel 033-4535377, Fax 033-4535388
> KvK Amersfoort 39081679, Rabo 39.48.05.380
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185777
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