##// END OF EJS Templates
templater: keep default resources per template engine (API)...
templater: keep default resources per template engine (API) This allows us to register a repo object as a resource in hgweb template, without loosing '{repo}' symbol: symbol('repo') -> mapping['repo'] (n/a) -> defaults['repo'] resource('repo') -> mapping['repo'] (n/a) -> resources['repo'] I'm thinking of redesigning the templatekw API to take (context, mapping) in place of **(context._resources + mapping), but that will be a big change and not implemented yet. props['templ'] is ported to the resources dict as an example. .. api:: mapping does not contain all template resources. use context.resource() in template functions.
Yuya Nishihara -
r35484:32c278eb default
Show More
Name Size Modified Last Commit Author
/ contrib / docker
apache-server
centos5 Loading ...
centos6 Loading ...
centos7 Loading ...
debian.template Loading ...
fedora20 Loading ...
fedora21 Loading ...
ubuntu.template Loading ...