Reputation: 3288
I have a variable questionCount
which is passed to the HTML page and used to create row column entries in a table. This number can vary and needs to be used in a for loop.
I need to do something like the following:
{% for num in 1..questionCount %}
<td>Question {{num}}</td>
{% endfor %}
But this does not work. What is the appropriate way to do this?
Upvotes: 2
Views: 3017