andrewebdev / tehblog

A very simple django blogging app
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

embed() template filter to allow selection of filters #24

Closed andrewebdev closed 13 years ago

andrewebdev commented 13 years ago

Currently the embed() filter only allows us to either filter using all of the registered functions, or one only. We should add the ability to specify a specific list of filters to use, as well as a method to exclude a list of filters.

examples:

Use all embed filters - {{ entry.content|embed }} Use specific filters - {{ entry.content|embed:"youtube,pl_gallery" }} Use all filters, but exclude some - {{ entry.content|embed:"!youtube,pl_gallery" }}

andrewebdev commented 13 years ago

This is now supported, also renamed this filter to modify