This course will be retired on August 28, 2023.
Built-in Tags and Filters7:44 with Lacey Williams Henschel
Use a few more built-in tags and filters before wrting our own custom template tag.
wordcount - Counts the words (defined by whitespace) in the variable.
truncatewords:X - Ends the variable after
X words and appends an ellipsis if any content was cut off.
urlize - Converts HTTP(S) and email addresses into HTML anchor tags with appropriate links.
You need to sign up for Treehouse in order to download course files.Sign up