mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
gen: fix multiple call of expression in match (#6324)
This commit is contained in:
@@ -24,21 +24,20 @@ pub fn (mut app App) init_once() {
|
||||
app.vweb.handle_static('assets')
|
||||
// This would make available all known static mime types from current
|
||||
// directory and below.
|
||||
//app.vweb.handle_static('.')
|
||||
// app.vweb.handle_static('.')
|
||||
}
|
||||
|
||||
pub fn (mut app App) init() {}
|
||||
pub fn (mut app App) init() {
|
||||
}
|
||||
|
||||
pub fn (mut app App) index() {
|
||||
// We can dynamically specify which assets are to be used in template.
|
||||
mut am := assets.new_manager()
|
||||
am.add_css('assets/index.css')
|
||||
|
||||
css := am.include_css(false)
|
||||
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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user