vweb: fix header.html

pull/3648/head
Alexander Medvednikov 2020-02-06 10:41:10 +01:00
parent 91e181b14a
commit 6c3613407d
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ pub fn compile_template(path string) string {
panic('html failed')
}
mut header := ''
if os.exists('header.html') {
if os.exists('header.html') && html.contains('@header') {
h := os.read_file('header.html')or{
panic('reading file header.html failed')
}