Title: Message
G'day:
I recommend sticking your <cfsilent> tags *in* the custom tags: I find it to work much better than the <cfsetting> option.  This means going out of your way to separate processing from output, but that's a good thing, anyhow.
 
And use <cfscript> (which generates no whitespace) as much as humanly possible.
 
And perhaps run a regexp over your generated content @ the end of the tag execution to dedupe runs of [:space:] data.  Being mindful of any inline JS that could have shortcircuited comments, though.
 
But yeah... the best solution would be for MM to get their act together regarding outputting noise.  It's ridiculous.
 

Adam Cameron
Senior Application Developer
Straker Interactive

Ph: +64 9 3605034
Fx: +64 9 3605870
Email: [EMAIL PROTECTED]

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Barry Beattie
Sent: Thursday, 1 July 2004 11:32 a.m.
To: CFAussie Mailing List
Subject: [cfaussie] RE: GRRR! whitespace!

it’s getting worse. I’ve tried every trick I know to reduce (just reduce, not get rid of it all) the whitespace and I’m still getting 60%+ of the rendered page as whitespace. I know it’s because I’m using taglibs and custom tags for everything but it defiantly objectionable.

 

consider this quick example. it has 9 lines of content but renders 57 lines total. Then when you’ve got a page full of custom tags it goes out of control.

 

is there anything else I can do?
thanx
barry.b

 

 

simple example: the page:

 

<cfprocessingdirective suppresswhitespace="Yes">

<cfsilent>

<cfimport prefix="content" taglib="contents">

</cfsilent>

<content:_test>

boo

</content:_test>

</cfprocessingdirective>

 

and the custom tag:

 

<cfsetting enablecfoutputonly="Yes">

<cfif thistag.executionMode is "start">

<cfoutput>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>

            <title>Untitled</title>

</head>

<body>

</cfoutput>

</cfif>

<cfsetting enablecfoutputonly="no">

 

<cfsetting enablecfoutputonly="Yes">

<cfif thistag.executionMode is "end">

<cfoutput>

</body>

</html>

</cfoutput>

</cfif>

<cfsetting enablecfoutputonly="no">

 


From: Steve Onnis [mailto:[EMAIL PROTECTED]
Sent: Monday, 28 June 2004 3:57 PM
To: CFAussie Mailing List
Subject: [cfaussie] RE: GRRR! whitespace!

 

calling objects?

 

every file you include in there will produce whitespace

 

every line that has a cf tag on it will create white space

 

Steve

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Barry Beattie
Sent: Monday, June 28, 2004 3:41 PM
To: CFAussie Mailing List
Subject: [cfaussie] GRRR! whitespace!

Hi All

 

I’ve got pages that are (totally) made up of CFIMPORT’ed custom tags. trouble is, it’s full of whitespace

 

<cfprocessingdirective suppresswhitespace = "yes"> at the top of the main page doesn’t seem to work on imported custom tags.

 

and then within the custom tags:

 

<cfif thisTag.executionMode is "start">

<cfsetting enablecfoutputonly="Yes">

<cfoutput>

…HTML and JS only

</cfoutput>

</cfsetting>

</cfif>

 

this actually does not produce ANY output!

 

I’m also using <CFSILENT> where I can but it’s still not enough.

 

any ideas? the problem is being caused by the custom tags. the amount of whitespace is defiantly objectionable in this particular case

 

thanx

barry.b

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to