vweb: fix header.html
							parent
							
								
									91e181b14a
								
							
						
					
					
						commit
						6c3613407d
					
				| 
						 | 
					@ -17,7 +17,7 @@ pub fn compile_template(path string) string {
 | 
				
			||||||
		panic('html failed')
 | 
							panic('html failed')
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	mut header := ''
 | 
						mut header := ''
 | 
				
			||||||
	if os.exists('header.html') {
 | 
						if os.exists('header.html') && html.contains('@header') {
 | 
				
			||||||
		h := os.read_file('header.html')or{
 | 
							h := os.read_file('header.html')or{
 | 
				
			||||||
			panic('reading file header.html failed')
 | 
								panic('reading file header.html failed')
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue