Unsupported web browser - Use a modern browser to view this website!
FreeMarker
  • Home
  • Manual
  • Java API
  • Contribute
  • Report a Bug
  • Download
Manual
Search form
  • Apache FreeMarker Manual
  • Template Language Reference
Bookmarks:
  • Alpha. index
  • Glossary
  • Expressions
  • ?builtins
  • #directives
  • .spec_vars
  • FAQ
PreviousNext

Template Language Reference

Section Contents
  • Built-in Reference
    • Alphabetical index
    • Built-ins for strings
    • Built-ins for numbers
    • Built-ins for date/time/date-time values
    • Built-ins for booleans
    • Built-ins for sequences
    • Built-ins for hashes
    • Built-ins for nodes (for XML)
    • Loop variable built-ins
    • Type independent built-ins
    • Seldom used and expert built-ins
  • Directive Reference
    • Alphabetical index
    • assign
    • attempt, recover
    • autoesc
    • compress
    • escape, noescape (deprecated)
    • flush
    • ftl
    • function, return
    • global
    • if, else, elseif
    • import
    • include
    • list, else, items, sep, break, continue
    • local
    • macro, nested, return
    • noautoesc
    • noparse
    • nt
    • outputformat
    • setting
    • stop
    • switch, on, case, default, break
    • t, lt, rt
    • User-defined directive (<@...>)
    • visit, recurse, fallback
  • Special Variable Reference
  • Reserved names in FTL
  • Deprecated FTL constructs
    • List of deprecated directives
    • List of deprecated built-ins
    • Old-style macro and call directives
    • Transform directive
    • Old FTL syntax
    • #{...}: Numerical interpolation
PreviousNext

Overview

  • What is FreeMarker?
  • Download
  • Version history
  • FAQ
  • License
  • Privacy policy

Often used / Reference

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

Community

  • Github project page
  • Report a bug
  • Report security vulnerability
  • Get help on StackOverflow
  • Announcements on Twitter
  • Discuss on mailing lists
  • Github
  • Twitter
  • Stack Overflow
Edited with XMLMind XML Editor

Last generated: 2025-03-11 10:59:11 GMT, for Freemarker 2.3.34

© 1999–2025 The Apache Software Foundation. Apache FreeMarker, FreeMarker, Apache, the Apache feather logo, and the Apache FreeMarker project logo are trademarks or registered trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.