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 20 matches
Smarty Forum Index
Author Message
  Topic: Whitespace control in Smarty 3.2
VEG

Replies: 0
Views: 9440

PostForum: Smarty 3   Posted: Fri Apr 19, 2013 6:03 am   Subject: Whitespace control in Smarty 3.2
Whitespaces in front or after tags can now be controled by the tag itself.
{-tag} remove white space infront of tag up to the previous non-whitespace character or beginning of the line
&qu ...
  Topic: Smarty 3 for JavaScript
VEG

Replies: 0
Views: 7177

PostForum: Smarty 3   Posted: Wed Oct 17, 2012 9:25 am   Subject: Smarty 3 for JavaScript
Maybe you can add compiling of subset of Smarty templates (with limited features) to JavaScript precompiled template? I think it would be a great feature.
  Topic: How to remame {block} tag?
VEG

Replies: 2
Views: 7823

PostForum: Smarty 3   Posted: Tue Dec 13, 2011 8:43 am   Subject: How to remame {block} tag?
Can I rename {block} to {area} tag?

I tried to rename the file smarty_internal_compile_block.php to smarty_internal_compile_area.php, class Smarty_Internal_Compile_Block to Smarty_Internal_Compile_ ...
  Topic: phpBB 3 and Smarty 3
VEG

Replies: 0
Views: 4731

PostForum: Smarty 3   Posted: Sat Jun 04, 2011 7:48 pm   Subject: phpBB 3 and Smarty 3
I propose to make a fork of phpBB 3 with Smarty 3 as a templating engine. What do you think about this?
  Topic: Block variable scope
VEG

Replies: 3
Views: 8559

PostForum: Smarty 3   Posted: Fri Aug 06, 2010 7:19 pm   Subject: Block variable scope
Example of using block variable scope.
...
$smarty->assign('goods', $goods);
$smarty->fetch('goods_catalog.tpl');

function smarty_block_goods($params, $content, $smarty ...
  Topic: Block variable scope
VEG

Replies: 3
Views: 8559

PostForum: Smarty 3   Posted: Tue Jul 27, 2010 8:38 am   Subject: Block variable scope
You understand my idea?
  Topic: Smarty 3 RC3 released
VEG

Replies: 38
Views: 114773

PostForum: Smarty 3   Posted: Thu Jul 15, 2010 2:47 pm   Subject: Smarty 3 RC3 released
Oh, big thanks!
  Topic: Class wrapper for block plugins
VEG

Replies: 2
Views: 7696

PostForum: Smarty 3   Posted: Thu Jul 15, 2010 12:45 pm   Subject: Class wrapper for block plugins
Why creating a class ffor it? A stack for the params and whatever flags controling the status of repeat which smarty_block_test would do same job.Because it is inconvenient. PHP mess templates also ...
  Topic: Smarty 3 RC3 released
VEG

Replies: 38
Views: 114773

PostForum: Smarty 3   Posted: Thu Jul 15, 2010 12:35 pm   Subject: Smarty 3 RC3 released
In Smarty 2 $smarty.template contains relative path and filename. In Smarty 3 RC3 this variable contains only filename. Is it correct behaviour?
  Topic: Class wrapper for block plugins
VEG

Replies: 2
Views: 7696

PostForum: Smarty 3   Posted: Sat Jul 10, 2010 5:17 pm   Subject: Class wrapper for block plugins
This wrapper solves the problem of sub-blocks of one type.
class SampleBlock
{
private $params;
private $smarty;
private $template;

private $counter = 3; // each block has its own va ...
  Topic: Block variable scope
VEG

Replies: 3
Views: 8559

PostForum: Smarty 3   Posted: Sat Jul 10, 2010 4:56 pm   Subject: Block variable scope
I propose to add "block" variable scope. Variable in this variable scope must be undefined after closing of current block. For example:
{if $a}
{assign var=temp value=1 scop ...
  Topic: Smarty 3 RC2 released
VEG

Replies: 12
Views: 34485

PostForum: Smarty 3   Posted: Tue Jul 06, 2010 10:10 pm   Subject: Smarty 3 RC2 released
U.Tews, Thank you.
What aboutIn Smarty 2 $smarty.template contains relative path to template and filename. In Smarty 3 this variable contains only filename. Is it correct behaviour?
  Topic: Smarty 3 RC2 released
VEG

Replies: 12
Views: 34485

PostForum: Smarty 3   Posted: Tue Jul 06, 2010 1:04 pm   Subject: Smarty 3 RC2 released
This code works perfectly and outputs "123" in PHP 5<?php
$a = array(1,2,3);
foreach($a as $a)
{
echo($a);
}
?>
I know that is very bad style, ...
  Topic: Smarty 3 RC2 released
VEG

Replies: 12
Views: 34485

PostForum: Smarty 3   Posted: Tue Jul 06, 2010 8:07 am   Subject: Smarty 3 RC2 released
And maybe you add deprecation notice for foreach with with identical from and item attributes.
{foreach item=blah from=$blah}
{$blah}
{/foreach}
This code correctly w ...
  Topic: Smarty 3 RC2 released
VEG

Replies: 12
Views: 34485

PostForum: Smarty 3   Posted: Tue Jul 06, 2010 7:58 am   Subject: Smarty 3 RC2 released
In Smarty 2 $smarty.template contains relative path to template and filename. In Smarty 3 this variable contains only filename. Is it correct behaviour?
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT
Jump to:  


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