Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a sensible default Smarty template directory
Currently, Smarty uses the directory of the template being rendered as the root path for included partials. This currently has two issues: 1. If the template is specified using the `file:` protocol then the function will fail. **This is fixed with a specific logic check.** 2. If some other protocol is used then a nonsense path is used. **This is fixed by falling back to the theme’s view path.
- Loading branch information
Showing
1 changed file
with
17 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters