FreeMarker
  • Home
  • Manual
  • Java API
  • Contribute
  • Report a Bug
  • Download
Manual
  • FreeMarker 手册
  • 程序开发指南
  • 入门
Bookmarks:
  • Alpha. index
  • Glossary
  • Expressions
  • ?builtins
  • #directives
  • .spec_vars
  • FAQ
  • 什么是 FreeMarker?
  • 模板开发指南
    • 入门
      • 模板 + 数据模型 = 输出
      • 数据模型一览
      • 模板一览
    • 数值,类型
      • 基本内容
      • 类型
    • 模板
      • 总体结构
      • 指令
      • 表达式
      • 插值
    • 其它
      • 自定义指令
      • 在模板中定义变量
      • 命名空间
      • 空白处理
      • 替换(方括号)语法
  • 程序开发指南
    • 入门
      • 创建 Configuration 实例
      • 创建数据模型
      • 获取模板
      • 合并模板和数据模型
      • 将代码放在一起
    • 数据模型
      • 基本内容
      • 标量
      • 容器
      • 方法
      • 指令
      • 结点变量
      • 对象包装
    • 配置(Configuration)
      • 基本内容
      • 共享变量
      • 配置设置
      • 模板加载
      • 错误控制
      • "不兼容改进"设置
    • 其它
      • 变量,范围
      • 字符集问题
      • 多线程
      • Bean的包装
      • 日志
      • 在Servlet中使用FreeMarker
      • 为FreeMarker配置安全策略
      • 遗留的XML包装实现
      • 和Ant一起使用FreeMarker
      • Jython包装器
  • 模板语言参考
    • 内建函数参考
      • 字母顺序索引
      • 字符串内建函数
      • 数字内建函数
      • 日期内建函数
      • 布尔值内建函数
      • 序列内建函数
      • 哈希表内建函数
      • 结点(对于XML)内建函数
      • 循环变量内建函数
      • 独立类型内建函数
      • 很少使用的和专家级的内建函数
    • 指令参考
      • Alphabetical index
      • assign
      • attempt, recover
      • compress
      • escape, noescape
      • flush
      • ftl
      • function, return
      • global
      • if, else, elseif
      • import
      • include
      • list, else, items, sep, break
      • local
      • macro, nested, return
      • noparse
      • nt
      • setting
      • stop
      • switch, case, default, break
      • t, lt, rt
      • User-defined directive (<@...>)
      • visit, recurse, fallback
    • 特殊变量参考
    • FTL 中的保留名称
    • 废弃的 FTL 结构
      • 废弃的指令列表
      • 废弃的内建函数列表
      • 老式的 macro 和 call 指令
      • 转换指令
      • 老式 FTL 语法
      • #{...}: 数字插值
  • XML处理指南
    • 前言
    • 揭示XML文档
      • 结点树
      • 将XML放到数据模型中
    • 必要的XML处理
      • 基本内容
      • 具体细节
    • 声明的XML处理
      • 基本内容
      • 具体细节
  • 附录
    • FAQ
    • 版本历史
      • 2.3.24
      • 2.3.23
      • 2.3.22
      • 2.3.21
      • 2.3.20
      • 2.3.19
      • 2.3.18
      • 2.3.17
      • 2.3.16
      • 2.3.15
      • 2.3.14
      • 2.3.13
      • 2.3.12
      • 2.3.11
      • 2.3.10
      • 2.3.9
      • 2.3.8
      • 2.3.7
      • 2.3.7 RC1
      • 2.3.6
      • 2.3.5
      • 2.3.4
      • 2.3.3
      • 2.3.2
      • 2.3.1
      • 2.3
      • 2.2.8
      • 2.2.7
      • 2.2.6
      • 2.2.5
      • 2.2.4
      • 2.2.3
      • 2.2.2
      • 2.2.1
      • 2.2
      • 2.1.5
      • 2.1.4
      • 2.1.3
      • 2.1.2
      • 2.1.1
      • 2.1
      • 2.01
      • 2.0
      • 2.0 RC3
      • 2.0 RC2
      • 2.0 RC1
    • Installing FreeMarker
    • Legal
      • License
      • Export Control
  • Glossary
  • 字母顺序索引
PreviousNext

入门

Section Contents
  • 创建 Configuration 实例
  • 创建数据模型
  • 获取模板
  • 合并模板和数据模型
  • 将代码放在一起

如果你还是使用FreeMarker的新手,在开始本章之前, 你应该先阅读 模板开发指南/入门/模板 + 数据模型 = 输出。

PreviousNext

Overview

  • What is FreeMarker?
  • Download
  • Version history
  • About us
  • License

Handy stuff

  • Try template online
  • Expressions cheatsheet
  • #directives
  • ?built_ins
  • .special_vars

Community

  • Chinese Manual on Github
  • FreeMarker on Github
  • Follow us on Twitter
  • Report a bug
  • Ask a question
  • Mailing lists
  • Github
  • Twitter
  • Stack Overflow
Edited with XMLMind XML Editor

Generated for: Freemarker 2.3.23 Last generated: 2015-09-18 14:38:51 GMT

© 1999–2015 The FreeMarker Project. All rights reserved.