I need to append photos to my gallery. I want to make it by jQuery. I need to append to my gallery wrapper a structure of html tags like this:
<article>
<div class="masonry-wall-brick-wrapper">
<figure>
<a>
<img />
</a>
<figcaption>Photo name</figcaption>
</figure>
</div>
</article>
Now i am using this code to append:
masonryWallWrapper.append('lalala');
but it is looks like bad idea. I have very big and unreadable string. Is there any better or best way?