aboutsummaryrefslogtreecommitdiff
path: root/ext/api.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/api.js')
-rw-r--r--ext/api.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/api.js b/ext/api.js
index 422a3703..7f552a1e 100644
--- a/ext/api.js
+++ b/ext/api.js
@@ -29,6 +29,10 @@ function findKanji(text, callback) {
sendMessage('findKanji', {text: text}, callback);
}
+function renderTemplate(data, template, callback) {
+ sendMessage('renderTemplate', {data: data, template: template}, callback);
+}
+
function getState(callback) {
sendMessage('getState', null, callback);
}