-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11548 from edx/ziafazal/fix-get-template-path
WL-320: fixed get_template_path to work with absolute path also
- Loading branch information
Showing
5 changed files
with
58 additions
and
3 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
5 changes: 5 additions & 0 deletions
5
common/test/test_microsites/test_microsite/templates/courseware/syllabus.html
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 @@ | ||
## mako | ||
<%namespace name='static' file='/static_content.html'/> | ||
<%include file="${static.get_template_path('courseware/test_relative_path.html')}" /> | ||
<%include file="${static.get_template_path('/courseware/test_absolute_path.html')}" /> | ||
|
3 changes: 3 additions & 0 deletions
3
common/test/test_microsites/test_microsite/templates/courseware/test_absolute_path.html
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,3 @@ | ||
## mako | ||
<%namespace name='static' file='/static_content.html'/> | ||
<div>Microsite absolute path template contents</div> |
3 changes: 3 additions & 0 deletions
3
common/test/test_microsites/test_microsite/templates/courseware/test_relative_path.html
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,3 @@ | ||
## mako | ||
<%namespace name='static' file='/static_content.html'/> | ||
<div>Microsite relative path template contents</div> |