Now, you store card template exactly in your main code file as HTML. There are some engines, that make JS templating much easier to work with - one, two. Choose one of them and use it in your app.
I suggest Lodash, because it contains cool functional helpers, not only template engine.
Now, you store card template exactly in your main code file as HTML. There are some engines, that make JS templating much easier to work with - one, two. Choose one of them and use it in your app. I suggest Lodash, because it contains cool functional helpers, not only template engine.