+
Skip to content

vvenv/jianjia

Repository files navigation

JianJia

A simple, fast, lightweight, and extensible template engine for Node.js and browsers.

test

中文

Key Features

  • 📝 Intuitive Template Syntax: Simple syntax for variables, conditionals, and loops.
  • 🔗 Custom global variables: Supports definition of global variables.
  • 🛠️ Built-in Tags and Filters: A collection of built-in tags and filters.
  • 🎨 Custom Tags and Filters: Ability to define custom tags and filters.
  • 🚀 Pre-compilation: Enhance rendering performance by precompiling.
  • 🐛 Error Handling and Debugging: Provides detailed error reporting and debugging support.
  • 🛡️ Security: Sandbox mode, and automatic escaping.
  • 🛫 Asynchronous Data Loading: Supports fetching and displaying remote data asynchronously.

Getting Started

const engine = new Engine()
const html = await engine.render('Hello, {{= name }}!', { name: 'World' })
// or
// const html = await engine.renderFile('./template.html', { name: 'World' })

document.body.innerHTML = html

Documentation

License

JianJia is released under the MIT License. You are free to use, modify, and distribute it as long as you comply with the license terms.

About

蒹葭苍苍,白露为霜。

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •  
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载