mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-14 18:37:58 +00:00
11 lines
335 B
Lua
11 lines
335 B
Lua
-- This is just an alias for the Nominatim themepark theme module
|
|
local flex = require('themes/nominatim/init')
|
|
|
|
function flex.load_topic(name, cfg)
|
|
local topic_file = debug.getinfo(1, "S").source:sub(2):match("(.*/)") .. 'themes/nominatim/topics/'.. name .. '.lua'
|
|
|
|
loadfile(topic_file)(nil, flex, cfg or {})
|
|
end
|
|
|
|
return flex
|