As of FreeMarker 2.3.23, you can use camel case instead of
snake case for directive names, like startsWith
instead of starts_with
. But know that then within
the same template, FreeMarker will enforce the usage of camel case
for all identifiers that are part of the template language (user
defined names are not affected).
- abs
- absolute_template_name
- ancestors
- api
- boolean
- byte
- c for numbers, for booleans, for strings
- c_lower_case
- c_upper_case
- cap_first
- capitalize
- ceiling
- children
- chop_linebreak
- chunk
- cn
- contains
- counter
- date for dates, for strings
- date_if_unknown
- datetime for dates, for strings
- datetime_if_unknown
- double
- drop_while
- esc
- ends_with
- ensure_ends_with
- ensure_starts_with
- eval
- eval_json
- filter
- first
- floor
- groups
- float
- has_api
- has_content
- has_next
- html
- index
- index_of
- int
- interpret
- item_cycle
- item_parity
- item_parity_cap
- is_even_item
- is_first
- is_infinite
- is_last
- is_nan
- is_odd_item
- is_type
- iso, iso_...
- j_string
- join
- js_string
- keep_after
- keep_after_last
- keep_before
- keep_before_last
- keys
- last
- last_index_of
- left_pad
- length
- long
- lower_abc
- lower_case
- map
- markup_string
- matches
- max
- min
- namespace
- new
- next_sibling
- no_esc
- node_namespace
- node_name
- node_type
- number
- number_to_date, number_to_datetime, number_to_time
- parent
- previous_sibling
- replace
- remove_beginning
- remove_ending
- reverse
- right_pad
- round
- root
- rtf
- short
- size
- sort
- seq_contains
- seq_index_of
- seq_last_index_of
- sequence
- sort_by
- split
- starts_with
- string: for strings, for numbers, for booleans, for date/time/date-time
- substring (deprecated)
- switch
- take_while
- then
- time for date/time/date-time, for strings
- time_if_unknown
- trim
- truncate, truncate_...
- uncap_first
- upper_abc
- upper_case
- url
- values
- with_args
- with_args_last
- word_list
- xhtml
- xml
See the built-ins filtered by left-hand-value type here.
If you don't find a built-in here that you have seen in a working template, probably you will find it here: Deprecated FTL constructs