## 1.1 安裝
如果使用maven,請使用如下坐標
```xml
<dependency>
<groupId>com.ibeetl</groupId>
<artifactId>beetl</artifactId>
<version>3.16.2.RELEASE</version>
</dependency>
```
最新版本可以從 [https://search.maven.org/](https://search.maven.org/) 中查詢到
有時候,你的系統別的庫還使用了特定的Antlr版本,你不想使用beetl自帶的antlr,那可以artifactId可以使用如下版本
| antlr 版本 | Beetl |
| ---------- | ---------------------------------------- |
| 4.5 | <artifactId>beetl-antlr4.5</artifactId> |
| 4.6 | <artifactId>beetl-antlr4.5</artifactId> |
| 4.7 | <artifactId>beetl</artifactId> |
| 4.8 | <artifactId>beetl</artifactId> |
| 4.9 | <artifactId>beetl</artifactId> |
| 4.10 | <artifactId>beetl</artifactId> |
| 4.11 | <artifactId>beetl-antlr4.11</artifactId> |
| 4.12 | <artifactId>beetl-antlr4.11</artifactId> |
```xml
<dependency>
<groupId>com.ibeetl</groupId>
<artifactId>beetl-antlr4.11</artifactId>
<version>3.15.0.RELEASE</version>
<exclusions>
<!--排除beetl帶的antlr4.11 -->
<exclusion>
<groupId>org.antlr</groupId>
<artifactId>antlr4-runtime</artifactId>
</exclusion>
</dependency>
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr4-runtime</artifactId>
<version>4.12.0</version>
<scope>compile</scope>
</dependency>
```
- Beetl 3 中文文檔
- 第一部分 基礎用法
- 1.1 安裝
- 1.2 快速開始
- 1.3 模板基礎配置
- 1.4 模板加載器
- 1.5 定界符與占位符
- 1.6 注釋
- 1.7 變量定義
- 1.8 屬性
- 1.9 數學表達式
- 1.10 循環語句
- 1.11 條件語句
- 1.12 異常捕獲
- 1.13 虛擬屬性
- 1.14 函數調用
- 1.15 安全輸出(重要)
- 1.16 輸出格式化
- 1.17 標簽
- 1.18 調用Java方法與屬性
- 1.19 嚴格MVC控制
- 1.20 指令
- 1.21 錯誤處理
- 1.22 Beetl小工具
- 1.23 Escape
- 第二部分 高級用法
- 2.1 配置GroupTemplate
- 2.2 自定義方法
- 2.3 自定義格式化函數
- 2.4 自定義標簽
- 2.5 自定義虛擬屬性
- 2.6 使用額外的資源加載器
- 2.7 自定義資源加載器
- 2.8 使用CompositeResourceLoader
- 2.9 自定義錯誤處理器
- 2.10 自定義安全管理器
- 2.11 注冊全局共享變量
- 2.12 自定義布局
- 2.13 性能優化
- 2.14 定制輸出
- 2.15 定制模板引擎
- 2.16 直接運行Beetl腳本
- 2.17 模板校驗
- 第三部分 Web 集成
- 3.1 Web提供的全局變量
- 3.2 集成技術開發指南
- 3.3 Servlet集成
- 3.4 SpringMVC集成
- 3.5 Spring Boot集成
- 3.6 Jodd集成
- 3.7 JFinal4 集成方案
- 3.8 Nutz集成
- 3.9 Struts2集成
- 3.10 整合ajax的局部渲染技術
- 3.11 在頁面輸出錯誤提示信息
- 附錄
- 4.1 內置方法
- 4.2 Spring相關函數
- 4.3 Spring security
- 4.4 shiro
- 4.5 內置格式化方法
- 4.6 內置標簽函數
- 4.7 內置html標簽
- 4.8 性能優化
- 4.9 Eclipse 插件
- 4.10 性能測試對比