diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-03-27 20:00:41 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-03-27 20:00:41 -0700 |
commit | a9fcc0cde6a09872e038e4aa4600d5cd80a71374 (patch) | |
tree | 3bd6e00e2c8eec94218636f554db2f2663141569 /ext/api.js | |
parent | 2bdb5763780e68889b355200a60844da83d3ede7 (diff) |
Switch to handlebars for templating
Diffstat (limited to 'ext/api.js')
-rw-r--r-- | ext/api.js | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); } |