diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-12-09 21:31:03 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-12-13 23:11:56 -0500 |
commit | f07207c9bfd940cc77345d38cbfd780fda1e065c (patch) | |
tree | 91c42d376d25869186ee0e9215a431f172a73bc0 /ext/bg/js/api.js | |
parent | 5a743505528cc2cc96ab6bf41a7460c75f6c084c (diff) |
Move apiTemplateRender implementation into Backend
Diffstat (limited to 'ext/bg/js/api.js')
-rw-r--r-- | ext/bg/js/api.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ext/bg/js/api.js b/ext/bg/js/api.js index 9de1fb4b..f4818854 100644 --- a/ext/bg/js/api.js +++ b/ext/bg/js/api.js @@ -61,12 +61,8 @@ function apiNoteView(noteId) { return utilBackend()._onApiNoteView({noteId}); } -async function apiTemplateRender(template, data, dynamic) { - if (dynamic) { - return handlebarsRenderDynamic(template, data); - } else { - return handlebarsRenderStatic(template, data); - } +function apiTemplateRender(template, data, dynamic) { + return utilBackend()._onApiTemplateRender({template, data, dynamic}); } async function apiCommandExec(command, params) { |