|
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 |
inspired Smarty n00b
Joined: 20 Jul 2010 Posts: 3
|
Posted: Tue Jul 20, 2010 2:41 pm Post subject: {strip} problem |
|
|
My delimiters are "{#" and "#}".
I use $smarty->auto_literal = false !!!
When I try reduce HTML like this
{# strip #}
some HTML
{# /strip #}
strip doesn't work and get message "{# strip #}" unknown tag "strip".
But other tags with whitespaces work correct:
1) {# include file='include/header.tpl' #}
2) {# if #}something todo{# /if #}
Could you help me? |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Tue Jul 20, 2010 3:36 pm Post subject: |
|
|
Looks like a BC anomaly with {strip} and auto_literal=false. We'll take a look at it.
However, why make your delimiters so difficult to read? Just stick to:
{strip}
{/strip}
{include ...}
It's much easier to follow, and let Smarty do auto_literal so you don't need to escape javascript/css. What you appear to be doing is making things harder for yourself. |
|
Back to top |
|
inspired Smarty n00b
Joined: 20 Jul 2010 Posts: 3
|
Posted: Tue Jul 20, 2010 4:23 pm Post subject: |
|
|
I started use these delimiters 3 years ago. Maybe you right simply code is better.
Thanks for your help. |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Tue Jul 20, 2010 4:26 pm Post subject: |
|
|
A fix for { strip } tag handling (whitespaces) is now in the SVN |
|
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
|