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

vweb: remove no longer needed special case & fix tmpl

This commit is contained in:
joe-conigliaro
2019-11-26 17:23:11 +11:00
committed by Alexander Medvednikov
parent 6349bd33d3
commit 3107618732
4 changed files with 5 additions and 13 deletions

View File

@ -169,9 +169,7 @@ fn (p mut Parser) comp_time() {
}
p.import_table.register_used_import('strings')
p.genln('/////////////////// tmpl start')
p.is_vweb = true
p.statements_from_text(v_code, false)
p.is_vweb = false
p.genln('/////////////////// tmpl end')
receiver := p.cur_fn.args[0]
dot := if receiver.is_mut || receiver.ptr { '->' } else { '.' }