From 6c3613407dce5aa044f7679b5e9170f7b04f46bf Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Thu, 6 Feb 2020 10:41:10 +0100 Subject: [PATCH] vweb: fix header.html --- vlib/vweb/tmpl/tmpl.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/vweb/tmpl/tmpl.v b/vlib/vweb/tmpl/tmpl.v index 4f793dc617..3a8693e04e 100644 --- a/vlib/vweb/tmpl/tmpl.v +++ b/vlib/vweb/tmpl/tmpl.v @@ -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') }