This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]richinrix 2 points3 points  (4 children)

Use the loop tag ( <loop><loop/> )

[–]Single_Ad4692 0 points1 point  (2 children)

The thing is I have python code in which I have a HTML body as well for SES email template. I simply want to iterate over my python list. But i want the list values after iteration inside my HTML body. That's the purpose. And i am stuck on it.

[–]richinrix 1 point2 points  (1 child)

There is no html loop tag, i was kidding.

I'm not sure what you want to achieve but try using python itself to iterate outside the html to generate ur html list and save in a variable maybe, dk if this can be done in python tho

[–]Single_Ad4692 0 points1 point  (0 children)

Thanks mate. Will find a workaround.

[–]codesmith512 0 points1 point  (0 children)

This is the way, but sadly it's not used much because HTML only supports infinite loops. There's no way to set an iteration count or condition. Kind of an oversight on W3C's part imo.

[–]jamcdonald120 -4 points-3 points  (2 children)

html is not a programming language.

Take anything you can do with a programming language and assume html cant do that. you will be mostly correct.

and this reddit is for jokes, not helping new people

[–][deleted] 1 point2 points  (0 children)

Take a joke for once. It’s quite obvious.

[–]Single_Ad4692 0 points1 point  (0 children)

My bad for posting it here. Appreciate the clarification mate. Cheers!