forked from maciejhirsz/ramhorns
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the ability to extend the template collection from another folder
Adds functions `extend_from_folder` and `extend_from_folder_with_extension` to include templates from another folder in the collection. If there is a file with the same name as a previously loaded template or partial, it will not be loaded. Also, this should fix the issue maciejhirsz#53 (the name of the partial which was not found should always be returned).
- Loading branch information
Showing
4 changed files
with
91 additions
and
38 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{{>head.html}} | ||
<body> | ||
<div>More {{body}}</div> | ||
{{>footer.html}} | ||
</body> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<head> | ||
<title>Hello, Ramhorns!</title> | ||
</head> | ||
<body> | ||
<div>More This is a really simple test of the rendering!</div> | ||
<footer>Sup?</footer> | ||
</body> |
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