I'm wondering how to duplicate a few strings in my templates. Specifically, I'm looking to create a table of contents sort of navigation at the top of my pages with anchor links to content farther down (like http://www.google.com/transparencyreport/faq/). I want the links to have the same text as the section headers farther down.
I've thought about using {% with %}, but it seems unwieldy to have to nest everything inside my {% with %} block.
Similar to Whats the best way to duplicate data in a django template?, but I am not inheriting this template anywhere so using {% block %} is not really an option.