Mandarine.TS
Latest
Latest
  • Mandarine.TS
  • Getting started
    • Installing Deno Runtime
    • Setting up Environment
    • Quick Example
  • Concepts
  • Mandarine Project Structure
  • Mandarine CLI
    • CLI Reference
      • mandarine new
      • mandarine generate
      • mandarine run
  • Mandarine Core
    • Core Initialization
    • Mandarine.json
    • Dot env file
    • Properties
      • The @Value Decorator
    • Components
      • Controller
      • Middleware
      • Repository
      • Component
      • Service
      • Configuration
      • Manual Component
    • Dependency Injection
      • Accessing DI container
    • Resource Handlers
      • Resource Handler Registry
      • Resource Handler
      • Resource Resolver
  • Mandarine MVC
    • Web MVC
    • Controllers
      • Routes
        • Parameterized Routes
      • HTTP Handlers
      • @ResponseStatus
    • Custom Middleware
    • Session Middleware
    • CORS Middleware
    • Template Engine
      • @Render Decorator
      • Accessing data from template
    • Launching web-app
    • Serving Static Content
    • Multipart Form Data
  • Mandarine Security
    • Sessions
  • Mandarine Data
    • ORM
      • Data source
      • Models
      • Repositories
        • Interacting with data
        • Updating data
    • Mandarine Query Language
  • Resources
    • Changelog
  • Plugins
    • Optional
    • Promise Repeater
Powered by GitBook
On this page
  • Main
  • Supported templates
  • Directory

Was this helpful?

  1. Mandarine MVC

Template Engine

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

PreviousCORS MiddlewareNext@Render Decorator

Last updated 4 years ago

Was this helpful?

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

Supported templates

At the time, Mandarine only supports template rendering for

  • (Temporarily unsupported since v1.1.2)

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

third-party view engine
See enum here
EJS
Handlebars
Denjucks
Click here
this link