summaryrefslogtreecommitdiff
path: root/ext/bg/js/template-renderer.js
Commit message (Collapse)AuthorAge
* Update copyright year (#1194)toasted-nutbread2021-01-01
| | | | | * Update copyright year * Remove redundant Author info
* JapaneseUtil normalization (#1076)toasted-nutbread2020-11-29
| | | | | * Use JapaneseUtil as a class which is manually instantiated * Use alias function for toKana
* Frequencies marker (#1074)toasted-nutbread2020-11-28
| | | | | | | | | | | * Update japanese.js tests * Simplify fallback/early exit * Add overloads to furigana and furiganaPlain handlebars helper functions * Expose unique expression/reading arrays (and subsequently counts) * Add {frequencies} marker
* Fix template renderer sandbox compatibility (#770)toasted-nutbread2020-09-04
| | | | | * Use Object.prototype.hasOwnProperty.call instead of hasOwn * Disable WebExtension and core.js APIs for template-renderer.js
* Defer assignment of marker (#762)toasted-nutbread2020-09-04
|
* Pitch accent Anki field templates (#701)toasted-nutbread2020-08-01
| | | | | | | | | | | | | | | | | | | * Template helper updates * Add pitch data to exported field formatting data * Reuse note data * Add no-op * Set up pitch accent templates * Refactor version update functions * Implement upgrade process for new Anki templates * Consistency * Update README and anki.js to have matching markers
* Additional template renderer helpers (#699)toasted-nutbread2020-07-31
| | | | | | | | | * Add spread function * Add generic operator evaluation function * Add variable get/set/scope functions * Add isMoraPitchHigh function
* Add eachUpTo function (#690)toasted-nutbread2020-07-26
|
* Fix incorrect handlebars execution context in helpers (#645)toasted-nutbread2020-06-29
|
* Template renderer class (#574)toasted-nutbread2020-06-15
* Convert handlebars.js to a class * Move/rename function * Update helper registration * Rename helper functions * Limit cache size * Make render() async * Rename and move