avoid escaping theme includes
This commit is contained in:
parent
05155bf9cf
commit
c948a85ad4
2 changed files with 3 additions and 3 deletions
|
|
@ -9,7 +9,7 @@
|
|||
#set $localfooterpath=$util.themePath("extra-footer.html", local=True)
|
||||
#if os.path.exists($localfooterpath)
|
||||
#if $literalFooter
|
||||
#set $localfooter="".join(open($localfooterpath, 'rt', encoding='utf-8').readlines())
|
||||
#set $localfooter=$util.SafeValue("".join(open($localfooterpath, 'rt', encoding='utf-8').readlines()))
|
||||
$localfooter
|
||||
#else
|
||||
#include $localfooterpath
|
||||
|
|
@ -20,7 +20,7 @@ $localfooter
|
|||
</div>
|
||||
#set $localbottompath=$util.themePath("extra-bottom.html", local=True)
|
||||
#if os.path.exists($localbottompath)
|
||||
#set $localbottom="".join(open($localbottompath, 'rt', encoding='utf-8').readlines())
|
||||
#set $localbottom=$util.SafeValue("".join(open($localbottompath, 'rt', encoding='utf-8').readlines()))
|
||||
$localbottom
|
||||
#end if
|
||||
</body>
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
<img src="$util.themePath('images/koji.png')" alt="Koji Logo" id="kojiLogo"/>
|
||||
#set $localnavpath=$util.themePath("extra-nav.html", local=True)
|
||||
#if os.path.exists($localnavpath)
|
||||
#set $localnav="".join(open($localnavpath, 'rt', encoding='utf-8').readlines())
|
||||
#set $localnav=$util.SafeValue("".join(open($localnavpath, 'rt', encoding='utf-8').readlines()))
|
||||
$localnav
|
||||
#end if
|
||||
<form action="search" id="headerSearch">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue