1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vweb: fix unused tmpl warning; remove duplicate code

This commit is contained in:
Alexander Medvednikov
2020-06-08 13:30:17 +02:00
parent 808975fc86
commit 1bbfc271c5
4 changed files with 70 additions and 118 deletions

View File

@@ -100,7 +100,7 @@ pub fn compile_template(content string) string {
}
}
s.writeln(str_end)
s.writeln('tmpl_res := sb.str() ')
s.writeln('_tmpl_res := sb.str() ')
s.writeln('}')
s.writeln('// === end of vweb html template ===')
return s.str()