The project consists of creating a template engine in PHP to create my own "language".
The template engine will translate .skiliox language into php.
On the skilio framework, there is some VIEWS which are the front-end of the website. The role of the new extension .skilio is to make the template engine recognize the files and translate some elements from the view into php to delete all the tags on the view and let uniquely some basic tags [for] ... [/for]
for [for $i = 0; $i < count($array); $i++] {{ $array[$i] }} [/for] // ["foo", "too", "boo"] => foo \n too \n boo
if [if $i < 5] // TRUE [else if $i > 6] // FALSE TRUE [else] //FALSE FALSE [/if]
foreach [foreach $foo as $key => $value] ... [/foreach]
while [while $i < 5] ... [/while]
do while [do] ... [/while $i < 5]
debug [dump $var]
| Damien Loup |
|---|

