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

Search found 11 matches
Smarty Forum Index
Author Message
  Topic: Better control of outputting of newlines / line breaks
roel_v

Replies: 10
Views: 43099

PostForum: Feature Requests   Posted: Wed Mar 07, 2012 10:17 am   Subject: Better control of outputting of newlines / line breaks
For reference, here is the Jinja documentation on the white space stripping syntax: http://jinja.pocoo.org/docs/templates/#whitespace-control

It also has something called 'line statements' (http:/ ...
  Topic: Better control of outputting of newlines / line breaks
roel_v

Replies: 10
Views: 43099

PostForum: Feature Requests   Posted: Wed Mar 07, 2012 10:14 am   Subject: Better control of outputting of newlines / line breaks
In the way other template engines (such as Jinja for Python) do, by having a modifier in the tag format that would indicate whether to remove leading white space or not. My first post in this thread c ...
  Topic: Better control of outputting of newlines / line breaks
roel_v

Replies: 10
Views: 43099

PostForum: Feature Requests   Posted: Wed Mar 07, 2012 9:28 am   Subject: Better control of outputting of newlines / line breaks
To follow up further, looking over my comments on this forum I see that I posted about another use case back in 2010: http://www.smarty.net/forums/viewtopic.php?p=68606&highlight=#68606 .

This ...
  Topic: Better control of outputting of newlines / line breaks
roel_v

Replies: 10
Views: 43099

PostForum: Feature Requests   Posted: Wed Mar 07, 2012 9:24 am   Subject: Better control of outputting of newlines / line breaks
Thanks for taking the time to reflect about my issue.

Your suggestion works (after some modifications) and makes my template look a lot tidier already, so thanks for that too. The multiline regex s ...
  Topic: Better control of outputting of newlines / line breaks
roel_v

Replies: 10
Views: 43099

PostForum: Feature Requests   Posted: Tue Mar 06, 2012 10:51 am   Subject: Better control of outputting of newlines / line breaks
I have run into this issue a few times more since I posted my original question, but the situation I have now is egregious enough to compel me to post about this again. I may just be missing something ...
  Topic: Better control of outputting of newlines / line breaks
roel_v

Replies: 10
Views: 43099

PostForum: Feature Requests   Posted: Thu Oct 06, 2011 12:50 pm   Subject: Better control of outputting of newlines / line breaks
There has been some recurring discussion on how to handle the extra newlines that are introduced by function blocks (for example here: http://groups.google.com/group/smarty-developers/browse_thread/th ...
  Topic: Suggestion for the 'indent' modifier
roel_v

Replies: 0
Views: 4771

PostForum: Smarty 3   Posted: Fri Dec 03, 2010 6:50 pm   Subject: Suggestion for the 'indent' modifier
(I posted this as a comment to the docs too, but I'm not sure if that's the correct place...)


I would like to suggest to add a third parameter to 'indent' to specify whether or not to indent the ...
  Topic: Undefined variable handling
roel_v

Replies: 2
Views: 7109

PostForum: Smarty 3   Posted: Thu Nov 18, 2010 4:14 pm   Subject: Undefined variable handling
Ok I see, thanks.
  Topic: Undefined variable handling
roel_v

Replies: 2
Views: 7109

PostForum: Smarty 3   Posted: Thu Nov 18, 2010 12:42 pm   Subject: Undefined variable handling
Currently the text at http://www.smarty.net/docs/en/tips.tpl#tips.blank.var.handling says

“Undefined variable” errors will show if PHP xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx and a variable had not bee ...
  Topic: Call smarty function by variable name
roel_v

Replies: 19
Views: 29758

PostForum: Smarty 3   Posted: Thu Nov 18, 2010 8:49 am   Subject: Call smarty function by variable name
Yes, working great now, thanks.

This is a really cool feature, I have Smarty templates now that work a bit like specialized C++ templates, where the compiler complains when functionality isn't impl ...
  Topic: Call smarty function by variable name
roel_v

Replies: 19
Views: 29758

PostForum: Smarty 3   Posted: Wed Nov 17, 2010 6:32 pm   Subject: Call smarty function by variable name
Thanks, I was running into this too just today. Luckily google updates its cache quickly.

That said, although the given example now works, the name argument is still not evaluated like other string ...
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP