if file does not exist, page will load from database
This commit is contained in:
parent
d351f7ebaf
commit
1e3b6703d6
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ class Page:
|
|||
Loads page info from files in module
|
||||
"""
|
||||
# load js
|
||||
doc.fields['__script'] = module.get_doc_file('page',doc.name,'.js').read()
|
||||
doc.fields['__script'] = module.get_doc_file('page',doc.name,'.js').read() or doc.script
|
||||
doc.script = None
|
||||
|
||||
# load css
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue