Smarty like template Pools
Supports smarty like template pools and loading from specific pool
after setting the search path array to somethink like this
array( "pool1" => "errorpages/", "pool16" => "templates9/" )
for example fetch a template with the filename "[pool16]index.html"
and it will look in the pool16 directory for the file first. If no [poolname] is given it will normally look through all directories just as it was before.
why don't you specify both as search path (errorpages/ and /templates9)
What happens if the file exists in both directorys? I have a addon system and each addon has a template dir. There will often be identical template names like view.tpl - settings.tpl. I wont get the correct file if a can't tell which dir should be used.
Shouldn't they be specify in the actually template itself.
extends "path1/template" extends "path2/template"
Or provide the load path in order you wish
Sent from my iPhone
On 05/01/2013, at 10:11 AM, Dragonbleapiece [email protected] wrote:
What happens if the file exists in both directorys? I have a addon system and each addon has a template dir. There will often be identical template names like view.tpl - settings.tpl. I wont get the correct file if a can't tell which dir should be used.
— Reply to this email directly or view it on GitHub.