|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
this not happen when using php.
![]() |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
hm... sorry kiteless i still blur... any example? i've already read the docs but nothing find
![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > template |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|