fixed get_template_path to work with absolute path also

fixed quality violation

skipped test in CMS

changes after feedback from mattd
This commit is contained in:
Zia Fazal
2016-02-15 12:45:06 +05:00
parent a26d576458
commit 6cd265751a
5 changed files with 58 additions and 3 deletions

View File

@@ -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')}" />

View File

@@ -0,0 +1,3 @@
## mako
<%namespace name='static' file='/static_content.html'/>
<div>Microsite absolute path template contents</div>

View File

@@ -0,0 +1,3 @@
## mako
<%namespace name='static' file='/static_content.html'/>
<div>Microsite relative path template contents</div>