循环组件生成
module App
using GenieFramework
@genietools
@app begin
@out messages = ["msg1", "msg2", "msg3"]
end
function ui()
row([card(style="margin: 10px;", @recur("msg in messages"), [
p("{{msg}}")
]),])
end
@page("/", ui)
end
module App
using GenieFramework
@genietools
@app begin
@out messages = ["msg1", "msg2", "msg3"]
end
function ui()
row([card(style="margin: 10px;", @recur("msg in messages"), [
p("{{msg}}")
]),])
end
@page("/", ui)
end