[patch] Allow ssi tag to use template dirs, making apps that use this feature much more portable
|Reported by:||Owned by:||Adrian Holovaty|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The current ssi template tag requires that files be specified using absolute paths. This makes apps much harder to redistribute, and limits the usefulness of this tag. Since a major use of this tag would be to factor out common code in templates, it makes sense to put these includes in template directories, and to allow the tag to search the TEMPLATE_DIRS for files to include.
The patch attached implements this, keeping compatibility with existing code by only looking for a template file if the path specified is relative rather than absolute.
This kind of overlaps with ticket #598, but this one could be added with no side effects for anyone else.
Change History (4)
comment:1 Changed 11 years ago by
|Summary:||Allow ssi tag to use template dirs, making apps that use this feature much more portable → [patch] Allow ssi tag to use template dirs, making apps that use this feature much more portable|