luci-lua-runtime: render cbi header/footer templates via ucode runtime
authorJo-Philipp Wich <jo@mein.io>
Wed, 26 Oct 2022 19:59:08 +0000 (21:59 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 26 Oct 2022 20:02:16 +0000 (22:02 +0200)
commita98e2ea17d5f1912e000817bd1085418d6ea8906
treee57b2890de463250e01b72790b77710a0acc6583
parentaca4591753d9c94c139268923c2323070f79e659
luci-lua-runtime: render cbi header/footer templates via ucode runtime

Trigger rendering of CBI header and footer templates via the ucode runtime
`include()` in order to ensure that scope data is properly inherited from
Lua templates (`cbi/header`) including ucode templates (`header`).

This fixes automatic triggering of the config apply flow on legacy Lua CBI
forms.

Ref: https://github.com/openwrt/luci/pull/6056#issuecomment-1292396588
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-lua-runtime/luasrc/dispatcher.lua