# domTpl
**Repository Path**: mirrors_singod/domTpl
## Basic Information
- **Project Name**: domTpl
- **Description**: 基于dom的高性能模板引擎(dom template)
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-09-25
- **Last Updated**: 2026-03-22
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# domTpl
基于 dom 的高性能模板引擎
## 特性
* 基于dom而不是字符串
* 模板直接写在目标位置,无需 script 标签或字符串保存模板
* 模板内支持访问全局变量
* 简单高效,体积小,无依赖
* 支持 require.js, sea.js
## 如何使用
```html
```
## API
```javascript
render = domTpl(node, data)
```
```javascript
node: 可选。默认为 html 节点
data: 可选。如果提供则直接渲染
redner(data): 编译返回的渲染函数
data: 可选。如不提供则使用 domTpl 的参数 data
```
## EXAMPLE
* [hello world](https://cdn.rawgit.com/wusfen/domTpl/master/example/helloWorld.html) | [源码](example/helloWorld.html)
* [list](https://cdn.rawgit.com/wusfen/domTpl/master/example/list.html) | [源码](example/list.html)
* [ajax](https://cdn.rawgit.com/wusfen/domTpl/master/example/ajax.html) | [源码](example/ajax.html)
* [time 时钟](https://cdn.rawgit.com/wusfen/domTpl/master/example/time.html) | [源码](example/time.html)
* [performance test 性能测试](https://cdn.rawgit.com/wusfen/domTpl/master/example/bigArray.html) | [源码](example/bigArray.html)