Merge pull request #10629 from scmmishra/router-source-fix
This commit is contained in:
commit
2be2c1b627
1 changed files with 3 additions and 3 deletions
|
|
@ -278,10 +278,10 @@ def setup_source(page_info):
|
|||
if not page_info.base_template:
|
||||
page_info.base_template = get_base_template(page_info.route)
|
||||
|
||||
if page_info.template.endswith('.html') or page_info.template.endswith('.md'):
|
||||
if page_info.template.endswith(('.html', '.md', )) and \
|
||||
'{%- extends' not in source and '{% extends' not in source:
|
||||
# set the source only if it contains raw content
|
||||
if '{%- extends' not in source and '{% extends' not in source:
|
||||
html = source
|
||||
html = source
|
||||
|
||||
# load css/js files
|
||||
js, css = '', ''
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue