+ return
+ end
+
+ if pcall(tmpl.render, request.module .. "/" .. request.action) then
+ return
+ end
+
+ stat, map = pcall(cbi.load, request.module.."/"..request.action)
+ if stat then
+ tmpl.render("header")
+ map:render()
+ tmpl.render("footer")
+ return
+ end
+
+ disp.error404()
+end
+
+-- The Simple View Dispatcher directly renders the template
+-- which is placed in ffluci/views/"request.module"/"request.action"
+function simpleview(request)
+ local i18n = require("ffluci.i18n")
+ local tmpl = require("ffluci.template")
+ local disp = require("ffluci.dispatcher")
+
+ i18n.loadc(request.module)
+ if not pcall(tmpl.render, request.module .. "/" .. request.action) then