I am wondering what is the best way to create repeating elements for a list in jquery, such as posts in a blog etc.
I guess I'm asking if theres something more like ng-repeat with just jquery. Right now, I'm just manually creating every element with jquery, giving them an id + the position in the array. This doesn't seem like a very elegant solution to me, and makes reusing components even messier.
I read into html templates, but that seems to be manipulated using pure JS without a jquery solution.
What would be the best way to clone a template or an element with children in jquery?
Thanks