🎉 Welcome to Mint Template Engine! This page showcases all core template features.
Mint Admin System · Template Engine Demo

Simple · Flexible · i18n Ready

Mint Template Engine Full Showcase

15K+
Templates
99.9%
Uptime
2x
Performance
8
Formats

Six Core Capabilities

Every feature is production-verified and battle-tested

🌐
Core

i18n Translation

Built-in T function with multi-language switching and argument interpolation

📦
Basic

Variable Interpolation

Inject strings, numbers, booleans and any Go data type into templates

🔄
Basic

Loop Iteration

Range directive to iterate slices/arrays, rendering lists and cards

🧩
Basic

Conditionals

if/else/with directives for conditional rendering and nil checks

🏗️
Advanced

Template Composition

define/template for layout inheritance and component reuse

Advanced

API Integration

Seamless integration with backend APIs for dynamic data interaction

Template Syntax at a Glance

Key syntax examples — hover to see the effect

📦Variables
{{ "{{" }}.Title}} -> {{.Title}}
Dot (.) accesses current context variables, supports nested structures
🌐Translation
{{ "{{" }}T $ "demo.slogan"}} -> Simple · Flexible · i18n Ready
T function auto-matches current language and returns translated text
🔤Arguments
{{ "{{" }}T $ "demo.greeting" "Name" "Admin"}}
Hello, Admin! Welcome to Mint Template Engine Demo.
🧩Conditionals
{{ "{{" }}if .IsProduction}}Prod{{ "{{" }}else}}Dev{{ "{{" }}end}} -> Dev
if/else controls rendering branches based on dynamic data

Live Interactive Demo

Switch languages and experience i18n in action

Language Switch Demo

The areas below update in real-time when language changes

Current Language en-US
Greeting Example
Hello, Admin! Welcome to Mint Template Engine Demo.
Live Language Switch
API Demo

Click the button below to call the API and get a greeting in current language

// API Response
Conditional Rendering
Current environment: Development (IsProduction = false)
Loop Iteration — Data Stats
15K+
Templates
99.9%
Uptime
2x
Performance
8
Formats
<!-- Corresponding Template Code -->
// Variable: .Title → Mint Template Engine
// i18n: T $ "demo.slogan" → Simple · Flexible · i18n Ready
// With arg: T $ "demo.greeting" "Name" "Admin" → Hello, Admin! Welcome to Mint Template Engine Demo.
// Conditional: if .IsProduction / else / end → Current environment: Development (IsProduction = false)
// Range loop: range .Stats → 4 items rendered above
// Nested template: template "header" / define "footer" / end