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:

committed by
Alexander Medvednikov

parent
6349bd33d3
commit
3107618732
@ -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 { '.' }
|
||||
|
Reference in New Issue
Block a user