From 5dbc19410c074ba4104a716f19a8f9c3db2b6a39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20D=C3=A4schle?= <daniel.daeschle@gmail.com> Date: Thu, 7 Jan 2021 20:46:23 +0100 Subject: [PATCH] examples: fix vweb assets example (#7949) --- examples/vweb/vweb_assets/vweb_assets.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/vweb/vweb_assets/vweb_assets.v b/examples/vweb/vweb_assets/vweb_assets.v index 64177fe452..cd102ddf3e 100644 --- a/examples/vweb/vweb_assets/vweb_assets.v +++ b/examples/vweb/vweb_assets/vweb_assets.v @@ -29,7 +29,7 @@ pub fn (mut app App) init_once() { pub fn (mut app App) init() { } -pub fn (mut app App) index() { +pub fn (mut app App) index() vweb.Result { // We can dynamically specify which assets are to be used in template. mut am := assets.new_manager() am.add_css('assets/index.css') @@ -37,7 +37,7 @@ pub fn (mut app App) index() { title := 'VWeb Assets Example' subtitle := 'VWeb can serve static assets too!' message := 'It also has an Assets Manager that allows dynamically specifying which CSS and JS files to be used.' - $vweb.html() + return $vweb.html() } fn (mut app App) text() vweb.Result {