2014-07-20 00:42:24 +02:00
|
|
|
# pongo2-addons
|
2014-07-20 00:24:32 +02:00
|
|
|
|
2014-07-20 00:42:24 +02:00
|
|
|
Official filter and tag add-ons for [pongo2](https://github.com/flosch/pongo2). Uses 3rd-party-libraries.
|
|
|
|
|
2014-07-20 00:50:56 +02:00
|
|
|
## How to use and install
|
|
|
|
|
|
|
|
Install via `go get -u github.com/flosch/pongo2-addons`.
|
2014-07-20 00:44:13 +02:00
|
|
|
|
|
|
|
Simply add the following import line **after** importing pongo2:
|
|
|
|
|
|
|
|
_ "github.com/flosch/pongo2-addons"
|
|
|
|
|
2014-07-20 00:50:56 +02:00
|
|
|
All additional filters/tags will be registered automatically.
|
2014-07-20 00:44:13 +02:00
|
|
|
|
2014-07-20 00:42:24 +02:00
|
|
|
## Filters
|
|
|
|
|
|
|
|
- **markdown** (parses markdown text and outputs HTML; **hint**: use the **safe**-filter to make the output not being escaped)
|
2014-07-26 17:28:14 +02:00
|
|
|
- **slugify** (creates a slug for a given input)
|
2014-07-20 00:42:24 +02:00
|
|
|
|
|
|
|
## Tags
|
|
|
|
|
2014-07-20 00:44:13 +02:00
|
|
|
(nothing yet)
|