-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Smarty like template Pools #58
base: master
Are you sure you want to change the base?
Conversation
context.php: Allow accessing first, second or third elements from an array Access does not depend on array keys being [0,1,2,3...] filters.php: Access second or third index from items Added json filter Limiting words could sometimes cut an html tag in half tags.php: Allow start index in {% for %} tag
…l numerical indexes
Supports smarty like tmeplate pools and loading from specific pool after setting the search path 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
why don't you specify both as search path (errorpages/ and /templates9) |
What happens if the file exists in both directorys? |
Conflicts: h2o/tags.php
Shouldn't they be specify in the actually template itself. extends "path1/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:
|
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.