summaryrefslogtreecommitdiff
path: root/ext/api.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-03-27 20:00:41 -0700
committerAlex Yatskov <alex@foosoft.net>2016-03-27 20:00:41 -0700
commita9fcc0cde6a09872e038e4aa4600d5cd80a71374 (patch)
tree3bd6e00e2c8eec94218636f554db2f2663141569 /ext/api.js
parent2bdb5763780e68889b355200a60844da83d3ede7 (diff)
Switch to handlebars for templating
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);
}