andrewebdev / tehblog

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

New truncate filters #7

Closed andrewebdev closed 14 years ago

andrewebdev commented 14 years ago

Create 2 new filters, similar to truncate_words.

First will be truncate_paragraphs.

Second is a bit more complicated. The filter will check the content it was used on, for a horizontal line, with a specific ID or Class, and then truncate the content at that point.

I think a third one called truncate_block could also be handy. A block wrapped by a specific

tag will be the one used.

andrewebdev commented 14 years ago

I think this feature would serve better as a completely separate app. Since it can be very usefull in other places also. It also breaks the main focus of tehblog a little bit, and we really dont need this by default.