You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As Noah pointed out, using Underscore's templating engine is not great for non-JS-coders. So it may be good to think about a different engine and/or restructuring so it's easier for people to change only parts of the output.
Right now, the template is just one big string, but you can give it a function so therefore you could use any template engine you want.
I personally like Underscore because its helpful in so many ways, and its templating engine allows for any logic. Templates should have some logic, in my opinion.
That said, we aren't doing any fancy logic in the template, just conditionally showing different things.
The text was updated successfully, but these errors were encountered:
As Noah pointed out, using Underscore's templating engine is not great for non-JS-coders. So it may be good to think about a different engine and/or restructuring so it's easier for people to change only parts of the output.
Right now, the template is just one big string, but you can give it a function so therefore you could use any template engine you want.
I personally like Underscore because its helpful in so many ways, and its templating engine allows for any logic. Templates should have some logic, in my opinion.
That said, we aren't doing any fancy logic in the template, just conditionally showing different things.
The text was updated successfully, but these errors were encountered: