I have a django include called partner_header with the following code.
<div class="site__header header partner-header--{{ class_name }}">
How can I make that {{ class_name }} be inputted by a helper or something similar? I'm coming from a different background and am not sure of the terminology.
class_name? I don't understand how this is not a simple "How can I populate a template variable?" question.my_viewinto the template using {{ }} or {% %} syntax? And do I have to import that at the top of the html template?render_to_response). In the template itself, you access using{{ var_name }}wherevar_nameis the key in your context dict. The{% %}syntax is for control tags likefor,if, etc.