Changes between Initial Version and Version 1 of Ticket #15053, comment 32
- Timestamp:
- Dec 6, 2013, 8:41:12 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #15053, comment 32
initial v1 6 6 making it easier to reuse it. 7 7 8 - The cache loader needs to be able to specify the loaders to try in9 `find_template`. So we appended just an other parameter to `find_template`10 making them to: `skip_template` and `loaders`.11 12 I noticed that the only thing that `skip_template` is useful for is for13 skipping loaders. So we could squash those two parameters into a single one:14 `loaders`. If that parameter isn't given the global loaders are loaded.15 16 The loader skipping could be done outside `find_template`: in17 `get_template` so this last function is the one that now gets the template18 to skip.19 20 8 - I've also added the `skip_template` parameter to the `select_template` 21 9 function for the cohesion. … … 23 11 - Docs has been updated (only documented functions are `get_template` and 24 12 `skip_template`. 25 26 @goinnn As a consequence of all this changes, you must first filter the cached27 loaders through `skip_loaders` and then pass them to `find_template`. This28 is an extra line of code but I think it enhances clarity. Before I forget it,29 we must update the docs that refer to loaders and tell about the new30 `never_skip` and `use_skip_template` attributes (I'd be glad to help with31 that if needed).32 13 33 14 Currently, the cache test fails (that's good), check that that they pass