include Tpex as submodule
This commit is contained in:
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
[submodule "core/lib/Thelia/Tpex"]
|
||||||
|
path = core/lib/Thelia/Tpex
|
||||||
|
url = git@github.com:thelia/Tpex.git
|
||||||
@@ -6,12 +6,6 @@
|
|||||||
"forum" : "http://thelia.net/forum",
|
"forum" : "http://thelia.net/forum",
|
||||||
"wiki" : "http://thelia.net/wiki"
|
"wiki" : "http://thelia.net/wiki"
|
||||||
},
|
},
|
||||||
"repositories" : [
|
|
||||||
{
|
|
||||||
"type" : "vcs",
|
|
||||||
"url" : "https://github.com/thelia/Tpex"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"require":{
|
"require":{
|
||||||
"php": ">=5.4.0",
|
"php": ">=5.4.0",
|
||||||
"ircmaxell/password-compat": "dev-master",
|
"ircmaxell/password-compat": "dev-master",
|
||||||
@@ -23,8 +17,7 @@
|
|||||||
"symfony/dependency-injection" : "2.1.*",
|
"symfony/dependency-injection" : "2.1.*",
|
||||||
"symfony/event-dispatcher" : "2.1.*",
|
"symfony/event-dispatcher" : "2.1.*",
|
||||||
"symfony/http-kernel" : "2.1.*",
|
"symfony/http-kernel" : "2.1.*",
|
||||||
"symfony/routing" : "2.1.*",
|
"symfony/routing" : "2.1.*"
|
||||||
"Thelia/Tpex" : "dev-master"
|
|
||||||
},
|
},
|
||||||
"minimum-stability": "stable",
|
"minimum-stability": "stable",
|
||||||
"config" : {
|
"config" : {
|
||||||
|
|||||||
37
composer.lock
generated
37
composer.lock
generated
@@ -1,38 +1,6 @@
|
|||||||
{
|
{
|
||||||
"hash": "2f31adf8756fec850487c80b20b42e0f",
|
"hash": "668b9cca3649c47d9016fb912f74856a",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
|
||||||
"name": "Thelia/Tpex",
|
|
||||||
"version": "dev-master",
|
|
||||||
"target-dir": "Thelia/Tpex",
|
|
||||||
"source": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/thelia/Tpex.git",
|
|
||||||
"reference": "c2b8151f4c378d30887900290467b21585a0eb15"
|
|
||||||
},
|
|
||||||
"dist": {
|
|
||||||
"type": "zip",
|
|
||||||
"url": "https://api.github.com/repos/thelia/Tpex/zipball/c2b8151f4c378d30887900290467b21585a0eb15",
|
|
||||||
"reference": "c2b8151f4c378d30887900290467b21585a0eb15",
|
|
||||||
"shasum": ""
|
|
||||||
},
|
|
||||||
"require": {
|
|
||||||
"symfony/event-dispatcher": "2.1.*",
|
|
||||||
"symfony/http-foundation": "2.1.*"
|
|
||||||
},
|
|
||||||
"time": "2013-02-18 22:51:33",
|
|
||||||
"type": "library",
|
|
||||||
"autoload": {
|
|
||||||
"psr-0": {
|
|
||||||
"Thelia\\Tpex": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"homepage": "http://thelia.net",
|
|
||||||
"support": {
|
|
||||||
"source": "https://github.com/thelia/Tpex/tree/master",
|
|
||||||
"issues": "https://github.com/thelia/Tpex/issues"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "ircmaxell/password-compat",
|
"name": "ircmaxell/password-compat",
|
||||||
"version": "dev-master",
|
"version": "dev-master",
|
||||||
@@ -616,7 +584,6 @@
|
|||||||
"minimum-stability": "stable",
|
"minimum-stability": "stable",
|
||||||
"stability-flags": {
|
"stability-flags": {
|
||||||
"ircmaxell/password-compat": 20,
|
"ircmaxell/password-compat": 20,
|
||||||
"psr/log": 20,
|
"psr/log": 20
|
||||||
"thelia/tpex": 20
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -69,8 +69,6 @@ class Parser implements ParserInterface
|
|||||||
|
|
||||||
protected $template = "default";
|
protected $template = "default";
|
||||||
|
|
||||||
protected $init = false;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param type $container
|
* @param type $container
|
||||||
@@ -83,27 +81,6 @@ class Parser implements ParserInterface
|
|||||||
$this->tpex = $tpex;
|
$this->tpex = $tpex;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function initialize()
|
|
||||||
{
|
|
||||||
if ($this->init === true) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** /!\ /!\ /!\ /!\ /!\ /!\ /!\ /!\ /!\ /!\ /!\ /!\ /!\
|
|
||||||
* @TODO
|
|
||||||
*
|
|
||||||
* Avant le lancement du parser, enregistrer les boucles, filtres.
|
|
||||||
* Pour ne pas le faire à chaque lancement, on va créer une class qui contient toutes les classes nécessaires
|
|
||||||
*
|
|
||||||
* Créer :
|
|
||||||
* un dumper
|
|
||||||
* une méthode qui récupère les différents éléments : boucles, filtres, substitutions, etc
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* /!\ /!\ /!\ /!\ /!\ /!\ /!\ /!\ /!\ /!\ /!\ /!\ /!\
|
|
||||||
*/
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return Symfony\Component\HttpFoundation\Request
|
* @return Symfony\Component\HttpFoundation\Request
|
||||||
|
|||||||
1
core/lib/Thelia/Tpex
Submodule
1
core/lib/Thelia/Tpex
Submodule
Submodule core/lib/Thelia/Tpex added at 34959348e4
2
templates/default/include1.html
Normal file
2
templates/default/include1.html
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
include 1 success<br />
|
||||||
|
#INCLUDE "subinclude1.html"
|
||||||
1
templates/default/subinclude1.html
Normal file
1
templates/default/subinclude1.html
Normal file
@@ -0,0 +1 @@
|
|||||||
|
subinclude1 success
|
||||||
Reference in New Issue
Block a user