-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Patches for split_parser branch - fixed one bug in include tag and added include_path #118
base: split_parser
Are you sure you want to change the base?
Conversation
Split of Parser from Tpl, to improve performances and maintainability
…{$href}" class="{$v1==$v2?'active':''}">)
Removed echo for ternary operator. (third section)
Issue 95, removed redundant $conf['tags']
Remove duplicate php open/close tags, fixes #52
Multiple templates feature
removed ['tags']
…r more advanced projects that uses more than one template directory
…pile_once", so the engine can be used for scheduled compilation using crontab
how can i include a full path? because if i use multi tpl_dir and dont have the same folders something like that Modul/Content/Tpl/content.html and my base folder Themes/public/desktop/test/index.html i need content from folder A in index from folder B, when i use {include = "Content/Tpl/content"} |
I'll work on this issue, thanks for reporting it. On Thu, Oct 24, 2013 at 4:50 PM, prisis notifications@github.com wrote:
|
Fix for issue-133 Compress Plugin
Absolute path
Bitcoin donation
Fix the reducePath call
I had an error when I did the following: ```php $t = new Tpl; $t->assign('arraytest',array('this', 'is', 'a', 'test'); $t->draw('test'); ``` In the test template I tried to implode the array with a whitespace: ```html {$arraytest|implode:" "} ``` But the result threw an error ``` Parse error: syntax error, unexpected ';'....... ``` Expected result: ``` this is a test ``` So I added and \s to the preg_match on line 610 of the Parser.php file. Barry
added type 'form' to path replacement
Please add supporting path replacement for variables in templates.
path_replace run on after_filter instead of before_filter
modifierReplace : whitespace param error
add support for using static class functions as modifiers
Static method modifiers
…here is now way to build it with PHP 5.2
Fix for Issue #121
Make tests pass
Update with latest raintpl3Merge
Hello.
RainTPL just stopped working with include tags. So I fixed the problem and added new option "include_path" that will allow searching for template to include in many diffirent paths. It will not slow down template engine as it's only doing once (when template is going to be compiled).
I will add also two configuration options "force_compile" and "dont_compile". The first one will be for debugging purposes (I have save a template file everytime I want to debug parser... it's annoying) and the second one will allow compiling templates from crontab.
@edit
Removed "force_compile" as there is already "debug" option that provides same feature.
Added "allow_compile" and "allow_compile_once" - with
True
values by default.