raintpl3
raintpl3 copied to clipboard
The easiest Template Engine for PHP
Hi, @rainphp you broke the Compress plugin apparently, and I wanted it to have the ability to only compress if debug is false, so here is yours from a previous...
Hey, I would like to have the possiblity to detect if I am in the last element of the loop or the first.. Currently I'm realizing it like this: ```...
In my main template file I write this: {include="header"} It includes the header.html file, but displays this: Warning: Invalid argument supplied for foreach() in D:\xampp\htdocs\library\Rain\Tpl\Parser.php on line 368
Hi, the second ternary operator parser regex : {(.[^{?]_?)\?(._?):(.*?)} is wrong (parser.php, line 59). The problem is, that is also matches PHP code inserted by plugins that parsed the template...
Hello. I'm moving from Smarty then from Dwoo template system to RainTPL and in my projects there is a syntax i cant find in RainTPL. Its a string syntax used...
The registered tags (and maybe plugins also) should be part of the checksum generating / checking process. Now, as the checksum only contains the config array, If I draw the...
Looks like parser has it's own array of native tags now, and the one in config is redundant
I was doing this `{if="isset( $value.executable )"}{$value.executable|safe}{/if}` and it took me a while to figure this out.
Otherwise if you use variables, they are passed as is, like $page
< img src="//google.com/1.png"> < link src="//bootstrap.com/style.css">