From 8aaac2c5a2f4e95f9d4173d91126de3a0105e620 Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Fri, 15 Mar 2013 12:33:20 +0100 Subject: [PATCH] save Tpex commit --- core/lib/Thelia/Core/Template/Parser.php | 5 ++- core/lib/Thelia/Tpex | 2 +- local/plugins/Test/Loop/Doobitch.php | 39 ++++++++++++++++++++++++ templates/default/index.html | 33 +++++++------------- 4 files changed, 55 insertions(+), 24 deletions(-) create mode 100644 local/plugins/Test/Loop/Doobitch.php diff --git a/core/lib/Thelia/Core/Template/Parser.php b/core/lib/Thelia/Core/Template/Parser.php index 6d29541c4..e5d5d345e 100644 --- a/core/lib/Thelia/Core/Template/Parser.php +++ b/core/lib/Thelia/Core/Template/Parser.php @@ -152,7 +152,10 @@ class Parser implements ParserInterface $tpex->init($this->container->get("request"), $this->container->get("dispatcher"), $content, THELIA_TEMPLATE_DIR . rtrim($this->template, "/") . "/"); $tpex->configure( - array("foo" => "Test\Loop\Foo"), + array( + "foo" => "Test\Loop\Foo", + "doobitch" => "Test\Loop\Doobitch" + ), array(), array( "secure" => "Thelia\Core\Template\BaseParam\Secure" diff --git a/core/lib/Thelia/Tpex b/core/lib/Thelia/Tpex index 35d0fa177..3558c816e 160000 --- a/core/lib/Thelia/Tpex +++ b/core/lib/Thelia/Tpex @@ -1 +1 @@ -Subproject commit 35d0fa177dc0e2b6b2a71fdbcf864d249f87a5ea +Subproject commit 3558c816e26c31d1575432fba2177ad215e612c5 diff --git a/local/plugins/Test/Loop/Doobitch.php b/local/plugins/Test/Loop/Doobitch.php new file mode 100644 index 000000000..3aaa507c3 --- /dev/null +++ b/local/plugins/Test/Loop/Doobitch.php @@ -0,0 +1,39 @@ + -
TODO write content #SET{toto, 4} toto vaut #GET{toto} zeafazefaze azef azef azef azef +
TODO write content #SET{toto, 4} toto vaut #GET{toto} zeafazefaze azef azef azef azef
- #TOTO - - #ALFRED azd azd azed azd - #CHAPOle chapo est vide + toto : #TOTO
+ count : #__COUNT__

+ + #ALFRED azd azd azed azd
+ #CHAPO n'est pas videle chapo est vide
- - avant boucle - - #FU - - UNEVARIABLE vaut zéro - - UNEVARIABLE ne vaut pas zéro - - - après boucle - - après boucle vide - - - Compteur = #INDEX
-
+ + + Compteur = #INDEX
+
+