1 -- This is just an alias for the Nominatim themepark theme module
 
   2 local flex = require('themes/nominatim/init')
 
   4 function flex.load_topic(name, cfg)
 
   5     local topic_file = debug.getinfo(1, "S").source:sub(2):match("(.*/)") .. 'themes/nominatim/topics/'.. name .. '.lua'
 
   7     if topic_file == nil then
 
   8         error('Cannot find topic: ' .. name)
 
  11     loadfile(topic_file)(nil, flex, cfg or {})