Comment by jshmrsn
4 years ago
For web apps, you often want your content/HTML to dynamically render different elements depending on application state. Using a separate template file and having your logic plug into the template is often more complicated than just having your flow logic (if/else chains checking application state) return bits of relevant HTML/content inline.
No comments yet
Contribute on Hacker News ↗