Skip to content

2.0.0

Compare
Choose a tag to compare
@EpocDotFr EpocDotFr released this 25 Apr 06:56
· 22 commits to main since this release

Removed

  • Remove icon() Jinja helper, replaced by embed()
  • Remove url() Jinja helper, replaced by absurl()
  • Remove LOCALE config value and associated code

Added

  • Add embed() Jinja helper, which replaces the less generic icon() one
  • Add absurl() Jinja helper which replaces url()
  • Add generic Markdown support (read more)
    • Add new dependency: markdown
    • Add new config values: MARKDOWN_EXTENSIONS and MARKDOWN_DEFAULT_PARTIAL
  • Add new Jinja global: collected
  • Add new USE_HTML_EXTENSION config value
  • Add -v/--version option to staticjinjaplus CLI
  • staticjinjaplus serve now serve RSS and Atom files with proper MIME types

Changed

  • Refactor source code to be more readable and simpler (there isn't any backward-incompatible changes, because you're not supposed to use staticjinjaplus' API)
  • Increase minimum required Python version from 3.9 to 3.10
  • The following configuration values have been renamed:
    • ASSETS_BUNDLES -> WEBASSETS_BUNDLES
    • GLOBALS -> JINJA_GLOBALS
    • FILTERS -> JINJA_FILTERS
    • EXTENSIONS -> JINJA_EXTENSIONS
  • Documentation has been updated