Mephisto : Truncate HTML
A while back I noticed that some pages in my blog were displaying a bit funny. Looking into it I realized that the theme on my blog was truncating posts to a certain number of words, not closing the tags behind it. This was annoying. I made a mephisto plugin that does a reasonable
To install:
$ script/plugin install http://download.kevin.is-a-geek.net/mephisto_truncate_html
(from within your mephisto directory)
To use:
{{ article.body | truncate_html_words: 30, '..' }}
(from within your template)
May 23rd, 2008
Sorry, comments are closed for this article.