Say I have a template
Hello {{name}}!
While testing it, it would be useful to define the
In your template you can do like this:
{% jump_link as name %}
{% for obj in name %}
{{obj.helo}} - {{obj.how}}
{% endfor %}
In your template-tags you can add a tag like this:
@register.assignment_tag
def jump_link():
listArr = []
for i in range(5):
listArr.append({"helo" : i,"how" : i})
return listArr