From 1db07f52d1c3ea6659b8dace63a1245d1f4e83d3 Mon Sep 17 00:00:00 2001 From: Exa Stencil Date: Wed, 5 Feb 2020 11:53:16 +0200 Subject: [PATCH] Improve vweb example to output the cookie --- examples/vweb/vweb_example.v | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/vweb/vweb_example.v b/examples/vweb/vweb_example.v index 8292494dae..603ffd83a0 100644 --- a/examples/vweb/vweb_example.v +++ b/examples/vweb/vweb_example.v @@ -38,8 +38,6 @@ pub fn (app mut App) text() { } pub fn (app mut App) cookie() { - app.vweb.text('Headers:') app.vweb.set_cookie('cookie', 'test') - app.vweb.text(app.vweb.headers) - app.vweb.text('Text: hello world') + app.vweb.text('Headers: $app.vweb.headers') }