DIY Custom Tags6:29 with Lacey Williams Henschel
DIY, or Do It Yourself, custom template tags! Build a template tag that will provide you with a link to the newest course in our library at all times.
template is Django's module for all things template-related. We'll use this several times in the course.
template.Library is a class that lets us register new tags and filters through an instance of itself.
@register.simple_tag - Registers a function as a simple tag. Simple tags don't include new templates, don't have an end tag, and don't assign values to context variables.
You need to sign up for Treehouse in order to download course files.Sign up