From 519d100d54f29e6296f04540e962d382ab114d4e Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Mon, 18 Mar 2013 10:57:25 +0100 Subject: [PATCH] test TestLoop on Tpex --- core/lib/Thelia/Core/Template/Parser.php | 7 +++++-- core/lib/Thelia/Tpex | 2 +- local/plugins/Test/TestLoop/Equal.php | 14 ++++++++++++++ templates/default/index.html | 6 +++++- 4 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 local/plugins/Test/TestLoop/Equal.php diff --git a/core/lib/Thelia/Core/Template/Parser.php b/core/lib/Thelia/Core/Template/Parser.php index e5d5d345e..1163171d1 100644 --- a/core/lib/Thelia/Core/Template/Parser.php +++ b/core/lib/Thelia/Core/Template/Parser.php @@ -159,8 +159,11 @@ class Parser implements ParserInterface array(), array( "secure" => "Thelia\Core\Template\BaseParam\Secure" - ) - ); + ), + array( + "equal" => "Test\TestLoop\Equal" + ) + ); $this->setContent($tpex->execute()); } diff --git a/core/lib/Thelia/Tpex b/core/lib/Thelia/Tpex index 3558c816e..ecf90ef2b 160000 --- a/core/lib/Thelia/Tpex +++ b/core/lib/Thelia/Tpex @@ -1 +1 @@ -Subproject commit 3558c816e26c31d1575432fba2177ad215e612c5 +Subproject commit ecf90ef2b83b0be6f4bef5839481eec64a0e6bba diff --git a/local/plugins/Test/TestLoop/Equal.php b/local/plugins/Test/TestLoop/Equal.php new file mode 100644 index 000000000..e9de536f2 --- /dev/null +++ b/local/plugins/Test/TestLoop/Equal.php @@ -0,0 +1,14 @@ + - + + test vrai + + test faux + Compteur = #INDEX