| 1 | module main |
| 2 | |
| 3 | import veb |
| 4 | |
| 5 | struct App {} |
| 6 | |
| 7 | struct Context { |
| 8 | veb.Context |
| 9 | } |
| 10 | |
| 11 | fn (mut app App) new() veb.Result { |
| 12 | return $veb.html('veb_custom_context_route_call.html') |
| 13 | } |
| 14 | |
| 15 | fn (mut app App) create(mut ctx Context) veb.Result { |
| 16 | return app.new() |
| 17 | } |
| 18 | |
| 19 | fn main() { |
| 20 | mut app := App{} |
| 21 | mut ctx := Context{} |
| 22 | _ = app.create(mut ctx) |
| 23 | } |
| 24 |