Template Engine

This page summarizes the conceptual information of Mandarine's template engine.

Main

Mandarine allows you to render templates in your web application in order to provide more functionality. Templates are usually a type of HTML file with code from the back-end involved, these files are rendered by an engine and displayed on the browser as valid & clean HTML content. Mandarine has adapted a third-party view enginearrow-up-right in order to work natively with templates in your Mandarine Application.

Supported templates

See enum herearrow-up-right

At the time, Mandarine only supports template rendering for

Note that Mandarine sets EJS as the default template engine. Click herearrow-up-right for more information

Directory

By default, Mandarine uses ./src/main/resources/templates as your project's template folder, this behavior can be changed by setting your own properties. Refer to this linkarrow-up-right for more information.

Last updated

Was this helpful?