Hey Bert! (I always wanted to say that).
If I remember correctly, CF_LessWhiteSpace already DOES leave <SCRIPT> tags
alone. I must admit, although I wrote the tag, I don't use it much anymore
do to the processing overhead. But using it to build a 'compressed' version
of your CFM files is an interesting idea.
As for using confusing variable names, there is a FANTASTIC guide to writing
unmaintainable code floating around the Web (try
http://mindprod.com/unmain.html). My favourite is using two near-identical
variable names without any explanation, eg:
swimmer = 17;
if (swimner GT 10) {
print "Too old";
}
Bye now,
Lee (Bjork) Borkman
http://bjork.net ColdFusion Tags by Bjork
-----Original Message-----
From: Bert Dawson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 21, 2000 5:13 AM
To: Fusebox
Subject: RE: source code protection....
....
i strip out all excess
whitespace in .cfm files, using cffile and <cf_lesswhitespace justify=yes>
I tried using <cf_stripwhitespace, to turn the file into a one liner, but,
predicatably, it messed up the javascript - it wouldn't be too hard to write
a tag which left <script> tags alone....
Using confusing variable names would add another level of pain for anyone
trying to nick your code, but not very maintainable...
IMPORTANT NOTICE:
This e-mail and any attachment to it is intended only to be read or used by
the named addressee. It is confidential and may contain legally privileged
information. No confidentiality or privilege is waived or lost by any
mistaken transmission to you. If you receive this e-mail in error, please
immediately delete it from your system and notify the sender. You must not
disclose, copy or use any part of this e-mail if you are not the intended
recipient. The RTA is not responsible for any unauthorised alterations to
this e-mail or attachment to it.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists