pongo2-addons/README.md
Florian Schlachter 60d931b0b9 README fix
2014-07-28 16:38:27 +02:00

1.8 KiB

pongo2-addons

Build Status GitTip

Official filter and tag add-ons for pongo2. Since this package uses 3rd-party-libraries, it's in its own package.

How to install and use

Install via go get -u github.com/flosch/pongo2-addons. All dependencies will be automatically fetched and installed.

Simply add the following import line after importing pongo2:

_ "github.com/flosch/pongo2-addons"

All additional filters/tags will be registered automatically.

Addons

Filters

  • Regulars

    • filesizeformat (human-readable filesize; takes bytes as input)
    • slugify (creates a slug for a given input)
  • Markup

    • markdown (parses markdown text and outputs HTML; hint: use the safe-filter to make the output not being escaped)
  • Humanize

Tags

(nothing yet)

TODO

  • Support i18n/i10n