Cleanup
This commit is contained in:
parent
d5170414af
commit
94c30c83e6
@ -27,6 +27,13 @@ templates['kanji.html'] = template({"compiler":[7,">= 4.0.0"],"main":function(co
|
||||
+ alias4(((helper = (helper = helpers.glossary || (depth0 != null ? depth0.glossary : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"glossary","hash":{},"data":data}) : helper)))
|
||||
+ "\n</div>\n";
|
||||
},"useData":true});
|
||||
templates['kanji-link.html'] = template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
|
||||
var helper;
|
||||
|
||||
return "<a href=\"#\">"
|
||||
+ container.escapeExpression(((helper = (helper = helpers.kanji || (depth0 != null ? depth0.kanji : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : {},{"name":"kanji","hash":{},"data":data}) : helper)))
|
||||
+ "</a>\n";
|
||||
},"useData":true});
|
||||
templates['term.html'] = template({"1":function(container,depth0,helpers,partials,data) {
|
||||
var stack1, helper, options, alias1=depth0 != null ? depth0 : {}, alias2=helpers.helperMissing, alias3="function", buffer =
|
||||
"<div class=\"term\"><ruby>";
|
||||
|
@ -24,7 +24,7 @@ class Yomichan {
|
||||
let result = '';
|
||||
for (const c of options.fn(this)) {
|
||||
if (Translator.isKanji(c)) {
|
||||
result += `<a href="#">${c}</a>`;
|
||||
result += Handlebars.templates['kanji-link.html']({kanji: c});
|
||||
} else {
|
||||
result += c;
|
||||
}
|
||||
|
1
util/tmpl/kanji-link.html
Normal file
1
util/tmpl/kanji-link.html
Normal file
@ -0,0 +1 @@
|
||||
<a href="#">{{kanji}}</a>
|
Loading…
Reference in New Issue
Block a user