mirror of
https://github.com/vlang/v.git
synced 2025-09-15 07:22:27 +03:00
vweb: bring back html() test
This commit is contained in:
parent
3107618732
commit
cb8a19efaf
2 changed files with 2 additions and 4 deletions
|
@ -172,7 +172,7 @@ fn (p mut Parser) comp_time() {
|
|||
p.statements_from_text(v_code, false)
|
||||
p.genln('/////////////////// tmpl end')
|
||||
receiver := p.cur_fn.args[0]
|
||||
dot := if receiver.is_mut || receiver.ptr { '->' } else { '.' }
|
||||
dot := if receiver.is_mut || receiver.ptr || receiver.typ.ends_with('*') { '->' } else { '.' }
|
||||
p.genln('vweb__Context_html($receiver.name /*!*/$dot vweb, tmpl_res)')
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue