mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vweb: fix header.html
This commit is contained in:
parent
91e181b14a
commit
6c3613407d
@ -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')
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user