We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51bb276 commit 643589aCopy full SHA for 643589a
vlib/v/fmt/fmt.v
@@ -2086,7 +2086,13 @@ pub fn (mut f Fmt) chan_init(mut node ast.ChanInit) {
2086
pub fn (mut f Fmt) comptime_call(node ast.ComptimeCall) {
2087
if node.is_vweb {
2088
if node.method_name == 'html' {
2089
- f.write('\$vweb.html()')
+ if node.args.len == 1 && node.args[0].expr is ast.StringLiteral {
2090
+ f.write('\$vweb.html(')
2091
+ f.expr(node.args[0].expr)
2092
+ f.write(')')
2093
+ } else {
2094
+ f.write('\$vweb.html()')
2095
+ }
2096
} else {
2097
f.write('\$tmpl(')
2098
f.expr(node.args[0].expr)
0 commit comments