am looking for a django templatetag that will count words and substring a whole paragraph without chopping off words. Is there a built in function? I tried looking into the built-in function list at Django template documentation but couldn’t find anything.
Please advice?
Here is my implementation of this. It actually chops a sentence not a paragraph but anyway you should get an idea.
And it will return two variables
And the code. You should put in < your_app >/templatetags/