In this recipe, we will create the {% parse %} template tag, which will allow you to put template snippets in the database. This is valuable when you want to provide different content for authenticated and unauthenticated users, when you want to include a personalized salutation or you don't want to hardcode the media paths in the database.
Creating a template tag to parse content as a template
Getting ready
As usual, we will start with the utils app that should be installed and ready for custom template tags.
How to do it...
An advanced custom template tag consists...