Replies: 1 comment 1 reply
-
Hey! 👋 While the framework does not explicitly allow the use of other templating solutions, it is perfectly possible to use a solution like Kilt with your language of choice with Marten (for example, you can easily return HTML content generated using another templating language in handlers if necessary). That said, Marten encourages using its templating engine for all server-side rendering use cases and will never recommend using something else officially. The fact that templates are interpreted at runtime is one of the fundamental design decisions of the framework. This means that errors in templates can't be caught until they are parsed (which happens while rendering them), but the upside obviously is that since templates are not processed at compilation time, you don't need to recompile your whole application in order to update these and this improves the feedback loop in development (which becomes especially relevant with templates-heavy projects). |
Beta Was this translation helpful? Give feedback.
-
Hello! Thanks for making the marten framework :) I'm trying out porting one of my personal projects to something less, uh, home grown, and have found marten most closely matches my own preferences for web frameworks. The only gotcha for me is the marten template language, for a couple of reasons:
It would be great if other templating languages or engines could be configured (maybe through something like kilt? Hasn't been updated in awhile, so maybe more of a starting place than a solution) that would give the compile time checks at least, as that's been a wonderful way to bash bugs in my own projects. Even if this idea was accepted, I wouldn't consider this a quick turnaround or anything like that. Just want to throw out the idea.
Thanks again for the hard work in making a great framework!
Beta Was this translation helpful? Give feedback.
All reactions