Welcome to Jinja2 and i18n Complete Example Page

这是一个展示 Jinja2 模板引擎和国际化翻译功能的完整示例页面

User Information

Name: 张三

Email: zhangsan@example.com

Role: 开发者

Active

Score: 95.5

Features

📄

模板继承

支持模板继承和块覆盖,提高代码复用性

Index: 1 / 6
🔀

条件渲染

使用 if/else 进行条件判断和渲染

Index: 2 / 6
🔄

循环遍历

支持 for 循环遍历列表和字典

Index: 3 / 6
🌍

国际化翻译

支持多语言切换,使用 _() 函数进行翻译

Index: 4 / 6
🔧

过滤器

内置丰富的过滤器,如 upper, lower, length 等

Index: 5 / 6
⚙️

宏定义

支持宏定义,实现组件化开发

Index: 6 / 6

Statistics

12,345
Views
678
Likes
234
Comments
89
Shares

Categories

前端开发 (3 items)

HTML
Level: 高级
CSS
Level: 中级
JavaScript
Level: 高级

后端开发 (3 items)

Python
Level: 高级
FastAPI
Level: 中级
SQLAlchemy
Level: 中级

Conditional Rendering Example

You have premium membership

Advanced features are hidden

Null Handling Example

Optional Field: (null)

Empty List: (empty)

Date and Time Example

Current Date: 2024-01-23

Current Time: 09:30:00

Macro Example

Badge 1 Badge 2 Badge 3 Badge 4
View Detail