FreeMarker2.3.9+ Doc目录

Table of Contents

Preface

I. Designer's Guide

1. Quick Start

Template + data model = output

The data model

The template

2. The Data Model

Basics

Scalar variables

Hashes, sequences and collections

Methods

Macros and transforms

Nodes

3. The Template

Overall structure

Directives

Expressions

Interpolations

4. Miscellaneous

Defining your own directives

Defining variables in the template

Namespaces

White-space handling

Alternative (square bracket) syntax

II. Programmer's Guide

1. Quick Start

Create a configuration instance

Create a data model

Get the template

Merging the template with the data model

Putting all together

2. The Data Model

Basics

Scalars

Containers

Methods

Transforms

Node variables

Object wrappers

3. The Configuration

Basics

Shared variables

Settings

Template loading

Error handling

4. Miscellaneous

Variables

Charset issues

Multithreading

Bean wrapper

Logging

Using FreeMarker with servlets

Configuring security policy for FreeMarker

Legacy XML wrapper implementation

Using FreeMarker with Ant

Jython wrapper

III. XML Processing Guide

1. Preface

2. Exposing XML documents

The DOM tree

Putting the XML into the data model

3. Imperative XML processing

Learning by example

Formal description

4. Declarative XML Processing

Basics

Details

IV. Reference

1. Built-in Reference

Built-ins for strings

Built-ins for numbers

Built-ins for dates

Built-ins for booleans

Built-ins for sequences

Built-ins for hashes

Built-ins for nodes (for XML)

Seldom used and expert built-ins

2. Directive Reference

if, else, elseif

switch, case, default, break

list, break

include

import

noparse

compress

escape, noescape

assign

global

local

setting

User-defined directive (<@...>)

macro, nested, return

function, return

flush

stop

ftl

t, lt, rt

nt

attempt, recover

visit, recurse, fallback

3. Interpolation Reference

${...}: Universal interpolation

#{...}: Numerical interpolation

4. Special Variable Reference

5. Reserved names in FTL

6. Deprecated FTL constructs

List of deprecated directives

List of deprecated built-ins

Old-style macro and call directives

Transform directive

Old FTL syntax

 

 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值