summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/ucode/runtime.uc
diff options
context:
space:
mode:
Diffstat (limited to 'modules/luci-base/ucode/runtime.uc')
-rw-r--r--modules/luci-base/ucode/runtime.uc4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/luci-base/ucode/runtime.uc b/modules/luci-base/ucode/runtime.uc
index da73d13fe4..89e396d468 100644
--- a/modules/luci-base/ucode/runtime.uc
+++ b/modules/luci-base/ucode/runtime.uc
@@ -61,6 +61,10 @@ const Class = {
return this.L;
},
+ is_ucode_template: function(path) {
+ return access(`${template_directory}/${path}.ut`);
+ },
+
render_ucode: function(path, scope) {
let tmplfunc = loadfile(path, { raw_mode: false });