parser: check for using comptime $veb.html()/$vweb.html(), without importing veb or vweb (#21957)

This commit is contained in:
yuyi 2024-07-29 21:55:29 +08:00 committed by GitHub
parent 5e435a7111
commit c9c38d5c11
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 43 additions and 4 deletions

View file

@ -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 {