What is the best way to create suitelets with html...
# suitescript
a
What is the best way to create suitelets with html elements. I usually have one element that I keep modifying the default value. Then I have many html strings with interpolation all over. My code quickly becomes an unmaintainable mess. I cant use interpolation if I keep the html is a separate file. Sometimes I use javascript to insert adjacent html. What are some tips to build suitelets with html that don't end up looking like a train wreck?
b
html in a file, render it serverside using your favorite template library
a
Can you provide some examples of template libraries?
a
@Alan Fitch As @battk mentioned using some templating would be helpful, you can use something like handlebars or something like that...
a
Thanks guys, I will check it out.