ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old July 1st, 2004, 04:39 AM
hymns hymns is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Melaka, Malaysia
Posts: 51 hymns User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 29 m 57 sec
Reputation Power: 5
Send a message via ICQ to hymns Send a message via Yahoo to hymns
template

hi,

i have made a cfm script and declair some variable.
i try to replace the variable with the template file.

example:

filename: index.cfm
contents:
<cfinclude template="myprocessor.cfm">
my name is {NAME} i live in {LOCATION} my age is {AGE}

and the script just replacing the the {VAR}. I hate when i view the cfm source code at browser like this

my name is









hymns



i live in





malaysia

my age is



24


to may space/tab. how to remove this sh*t?
__________________
Making it different not a profit

Reply With Quote
  #2  
Old July 1st, 2004, 04:40 AM
hymns hymns is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Melaka, Malaysia
Posts: 51 hymns User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 29 m 57 sec
Reputation Power: 5
Send a message via ICQ to hymns Send a message via Yahoo to hymns
this not happen when using php.

Reply With Quote
  #3  
Old July 1st, 2004, 08:08 AM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,627 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 10 h 8 m 55 sec
Reputation Power: 53
Oh, PHP produces whitespace output as well, plenty of it. But yes, CF has been notorious for it. There are several things you can do. First, make sure "enable whitespace management" is enabled in the CF administrator. Next, you can use things like <cfprocessingdirective> and <cfsilent> to limit or completely eliminate output depending on what you want to do. The bottom line is that with some knowledge and some basic techniques, you can get the HTML output of your CF pages to have very little extra whitespace.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian.
How to Post a Question in the Forums

Reply With Quote
  #4  
Old July 5th, 2004, 12:32 AM
hymns hymns is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Melaka, Malaysia
Posts: 51 hymns User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 29 m 57 sec
Reputation Power: 5
Send a message via ICQ to hymns Send a message via Yahoo to hymns
hm... sorry kiteless i still blur... any example? i've already read the docs but nothing find

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > template


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway