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 engine in order to work natively with templates in your Mandarine Application.

Supported templates

See enum here

At the time, Mandarine only supports template rendering for

Note that Mandarine sets EJS as the default template engine. Click here 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 link for more information.

Last updated