|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
holunda Smarty Rookie
Joined: 27 Jun 2003 Posts: 28 Location: Austria > Tyrol
|
Posted: Thu Jul 24, 2003 1:41 pm Post subject: Before displaying Template optimize html |
|
|
I have a little question:
A simple Example: (this is my code yet)
Code: |
<html>
<head>
<title></title>
</head>
<body>
<table ....
</body>
|
But i want to have this one:
Code: |
<html>
<head>
<title></title>
</head>
<body>
<table ....
</body>
|
Is there a function to "clean" the code?
thx Alex |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Thu Jul 24, 2003 2:04 pm Post subject: |
|
|
There is an outputfilter called "trimwhitespace" in the plugins-dir since Smarty-2.5.0. activate it with: Code: | $smarty->load_filter('output', 'trimwhitespace'); |
it should do what you have in mind |
|
Back to top |
|
holunda Smarty Rookie
Joined: 27 Jun 2003 Posts: 28 Location: Austria > Tyrol
|
Posted: Thu Jul 24, 2003 2:19 pm Post subject: |
|
|
THank you, works great! |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|