Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Smarty 3.1 DEV available

 
Post new topic   Reply to topic    Smarty Forum Index -> Smarty Development
View previous topic :: View next topic  
Author Message
mohrt
Administrator


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

PostPosted: Mon Jun 13, 2011 5:04 pm    Post subject: Smarty 3.1 DEV available Reply with quote

A preview of Smarty 3.1 (DEV) is available under the branches directory.

http://smarty-php.googlecode.com/svn/branches/Smarty_3_1_DEV/

A lot of changes are under way, here are the notes (and these are being updated continuously):

http://smarty-php.googlecode.com/svn/branches/Smarty_3_1_DEV/README_3...

A quick rundown of notable stuff:

Quote:
* 2.0 compatibility removed, moved to SmartyBC class
* Full UTF-8 compatibility for plugins
* implementation of setters/getters for some properties (more to come)
* Plugin API enhancements and improvements
* Compiler/Runtime performance enhancements/improvements
* in-line filters applied to blocks of tpl source
* resource API enhancements
* relative template include paths now possible in-template
* addressing specific template_dir from array now possible
* mixed resources from extends: now possible
* escape_html property added for simple global escapement
* compile_check only on cache miss now possible
* automated recompile on smarty version change


We are looking for feedback, nothing is set in stone. Please give it a try if you have some time!

-- Smarty Devs
Back to top
View user's profile Send private message Visit poster's website
vorapoap
Smarty Rookie


Joined: 22 Dec 2009
Posts: 32

PostPosted: Thu Jul 21, 2011 3:53 pm    Post subject: Reply with quote

Any hope to include GETTEXT as Smarty Native (e.g.)
Code:
{_ HELLO PEOPLE!}

^ Currently I do this via prefilter and postfilter.
But it does not always work nice in JavaScript and etc.

the output should be
Code:

echo _("HELLO PEOPLE!");


poEdit can easily scan a compiled template folder to create a po file.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Smarty Development 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