liquid_feedback_frontend
view app/main/api/style.lua @ 1490:63ce1a5c05c1
Small enhancements for self registration process and management
author | bsw |
---|---|
date | Wed Mar 27 12:40:33 2019 +0100 (2019-03-27) |
parents | 32cc544d5a5b |
children |
line source
1 slot.set_layout(nil, "application/json")
4 local r = json.object{
5 color = json.object()
6 }
8 local style = execute.chunk{ module = "style", chunk = "_style", params = { style = config.style } }
10 if style.color_md then
11 r.color.md = {}
12 for k, v in pairs(style.color_md) do
13 r.color.md[k] = v
14 end
15 end
17 if style.color_rgb then
18 r.color.rgb = {}
19 for k, v in pairs(style.color_rgb) do
20 r.color.rgb[k] = v
21 end
22 end
24 slot.put_into("data", json.export(json.object{ result = r }))