4 ms·
it is valuable to separate, but why is it valuable to force a different syntactic layer, often with heavy constrains on what logic can be expressed which inevit
by keymone 9y ago
it is valuable to separate, but why is it valuable to force a different syntactic layer, often with heavy constrains on what logic can be expressed which inevitably leaks back into various helpers implemented in the layer you've just separated yourself from? why is it not better to separate using mechanics native to your language?
- emodendroket 9y agoBecause what happens otherwise is you eventually end up with a whole program written in your templating language.
- keymone 9y agoTemplating is a bad term, it implies string generation, which is only a subset of what presentation logic is or is about. Taking that into account - if your presentation language is your program's language - I don't see the problem.
- emodendroket 9y agoBut that is my whole point. I want templates separate from the rest of the presentation logic, not interleaved with it.
- keymone 9y agotemplates are presentation logic.
- emodendroket 9y agoThat is why I said I wanted them separate from "the rest of the presentation logic" and not "the presentation logic."