v2 / vlib / v / gen / c / testdata / veb_custom_context_route_call.vv
23 lines · 17 sloc · 322 bytes · 953eb489c93bd6bebd59ddc0d0159aac7759aba9
Raw
1module main
2
3import veb
4
5struct App {}
6
7struct Context {
8 veb.Context
9}
10
11fn (mut app App) new() veb.Result {
12 return $veb.html('veb_custom_context_route_call.html')
13}
14
15fn (mut app App) create(mut ctx Context) veb.Result {
16 return app.new()
17}
18
19fn main() {
20 mut app := App{}
21 mut ctx := Context{}
22 _ = app.create(mut ctx)
23}
24