Skip to content

Refactor: convert all Mako exporter templates to Jinja2 #193

@bdhrs

Description

@bdhrs

Mako was originally used for HTML templating, especially for the original exporters. All new code, especially the webapp, uses Jinja2, as it is easier to read and debug. Refactor all legacy mako templates to use jinja. This will help with cross-compatibility between online and offline exporters.

  • exporter/deconstructor/deconstructor_exporter.py
  • exporter/goldendict/export_dpd.py
  • exporter/goldendict/export_epd.py
  • exporter/goldendict/export_help.py
  • exporter/goldendict/export_roots.py
  • exporter/goldendict/export_variant_spelling.py
  • exporter/grammar_dict/grammar_dict.py
  • exporter/kindle/kindle_exporter.py
  • exporter/tpr/tpr_exporter.py

Metadata

Metadata

Assignees

Labels

1-refactor1 Type: Refactoring, improvements and maintenance. No change to external behaviour2-exporter2 Section: Exporting to various formats3-python3 Language: Pythonic stuffp2Priority 2: Should havet2Time: a morning or afternoon (1hr-4hr)

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions