Towards unopinionated Web templates
In this article, Miguel Gamboa et al. argue against the use of an external DSL
to implement HTML templates, such as using JSP, handlebars, Thymeleaf, Vue, or
others, that introduce new dialects such as
v-bind, etc… On the other hand, an internal DSL like React JSX,
KotlinX.html, or HtmlFlow, let you fluently interleave constructs from the host
Providing templating features through specific dialects incur the following drawbacks:
- weak or absent compile-time validation.
- idiomatic mix between HTML, template dialects and the host programming language.
- restricted suite of control flow features leveraged by template dialects.
- opinionated templating idioms.
- lack of asynchronous rendering support, according to asynchronous view models.