1
0
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:
Alexander Medvednikov 2020-02-06 10:41:10 +01:00
parent 91e181b14a
commit 6c3613407d

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')
}