Marina Ferreira
Sep 1, 2018 · 1 min read

Hey Gregg,

That is a great solution too!! Indeed, there's a lot of repetition on the html and automatizing the template build in js would be an elegant way to go.
I did think about going that way, but since this is a tutorial for beginners, I tried to separate responsibilities as much as possible: structure, styles and behavior. I thought it would be a simpler approach.

If you get to apply that solution drop the link!

Thanks for taking the time to post this!

    Marina Ferreira

    Written by

    Software Engineer from São Paulo, Brazil.