79141078

Date: 2024-10-30 12:22:50
Score: 1.5
Natty:
Report link

truncatewords¶ Truncates a string after a certain number of words.

Argument: Number of words to truncate after

For example:

{{ value|truncatewords:2 }} If value is "Joel is a slug", the output will be "Joel is …".

Newlines within the string will be removed.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Qadir Hassan