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/util.js | |
parent | 2bdb5763780e68889b355200a60844da83d3ede7 (diff) |
Switch to handlebars for templating
Diffstat (limited to 'ext/util.js')
-rw-r--r-- | ext/util.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/ext/util.js b/ext/util.js index cd71e873..76579cac 100644 --- a/ext/util.js +++ b/ext/util.js @@ -68,23 +68,3 @@ function getPopupPositionForRange(popup, range, offset) { return {x: posX, y: posY}; } - -function renderDefs(terms) { - const outputs = []; - for (let term of terms) { - outputs.push(renderDef(term)); - } - - return outputs.join(''); -} - -function renderDef(term) { - return ` -<div class="yomichan-def"> - <span class="yomichan-def-expression">${term.expression}</span> - <span class="yomichan-def-rules">${term.rules.join(' < ')}</span> - <span class="yomichan-def-reading">${term.reading}</span> - <span class="yomichan-def-glossary">${term.glossary}</span> -</div> -`; -} |