Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

modify {strip} tag

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Feature Requests
View previous topic :: View next topic  
Author Message
bimal
Smarty Elite


Joined: 19 Apr 2007
Posts: 423

PostPosted: Sun Jan 25, 2009 8:48 am    Post subject: modify {strip} tag Reply with quote

Compressing HTML output is a better idea. Even though described in SEO articles to write beautifully formatted html output, it is not needed compulsorily. Instead, we can save rendering html out faster with lesser html output.

{strip} and {/strip} tags aid a lot. However, I looked into the compiled file of the corresponding output that everything inside {strip} tag is written with php's echo, including the templates and other formatting.

Will it be possible to produce a complied output, in a normal way, and by simply removing the spaces around, to strip out?

If you did not understand this scene well, please look into the compiled output by using and not using {strip} tags.
Back to top
View user's profile Send private message Visit poster's website
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Sun Jan 25, 2009 3:56 pm    Post subject: Reply with quote

You can use the "trimwhitespace" output filter that comes with Smarty to trim things up. Beyond that, you should let PHP or Apache (gzip) compress your text before sending to the browser.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Feature Requests All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP