Salvo does not come with any built-in template engine, as preferences for template engine styles vary from person to person.
At its core, a template engine is simply: data + template = string.
Therefore, Salvo can support any template engine as long as it can render the final string.
For example, here's how to use askama
:
Note: For projects that aren't particularly complex, we highly recommend adopting a frontend-backend separation approach. Use more flexible and ecosystem-rich UI frameworks (such as React, Vue, Svelte, etc.) for frontend development, with Salvo serving as the backend API service. This approach offers higher development efficiency, clearer division of responsibilities between frontend and backend, and better aligns with modern web application development trends.