" .. data.lead .. "") html.marxup(body or "") html.print("
local artikkel = blueprint("default") function artikkel.env(data) data.image = os.getenv("POST_image") data.published = os.getenv("POST_published") data.lead = os.getenv("POST_lead") end function artikkel.html(body, data) if data.mode == "title" then html.h2(data.title) return end if data.mode == "short" then html.p() html.print(body) return end html.print("
") html.img{src = data.image} html.h2(data.title) html.print("
") html.textarea{name='lead', value=data.lead, rows=3} html.p{} html.textarea{name='text', value=body} end return artikkel