diff --git a/vlib/vweb/vweb.v b/vlib/vweb/vweb.v index e21ef653f6..2278e0b60b 100644 --- a/vlib/vweb/vweb.v +++ b/vlib/vweb/vweb.v @@ -377,7 +377,7 @@ pub fn run(global_app &T, port int) { // println('vweb no db') } $for field in T.fields { - if field.is_shared { + if 'vweb_global' in field.attrs || field.is_shared { request_app.$(field.name) = global_app.$(field.name) } }