mirror of
https://github.com/vlang/v.git
synced 2025-09-14 06:52:36 +03:00
parser: check for using comptime $veb.html()/$vweb.html(), without importing veb or vweb (#21957)
This commit is contained in:
parent
5e435a7111
commit
c9c38d5c11
8 changed files with 43 additions and 4 deletions
|
@ -46,11 +46,11 @@ pub fn (mut app App) index(mut ctx Context) veb.Result {
|
|||
show := true
|
||||
hello := 'Hello world from veb, request number: ${c}'
|
||||
numbers := [1, 2, 3]
|
||||
return $vweb.html()
|
||||
return $veb.html()
|
||||
}
|
||||
|
||||
pub fn (mut app App) custom_template(mut ctx Context) veb.Result {
|
||||
return $vweb.html('custom.html')
|
||||
return $veb.html('custom.html')
|
||||
}
|
||||
|
||||
pub fn (mut app App) show_text(mut ctx Context) veb.Result {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue