View Source template_compiler_expr (template_compiler v3.5.0)
Compile expressions to erl_syntax trees.
Summary
Types
-type block_element() :: {block, identifier_token(), elements()} | {fragment, identifier_token(), elements()}.
-type element() :: block_element() | true | false | undefined | term().
-type elements() :: [element()].
-type linecol() :: {Line :: integer(), Column :: integer(), file:filename_all()}.
Functions
-spec compile(element(), #cs{filename :: binary(), module :: atom(), block_owner :: undefined | block_owner(), block :: atom(), blocks :: [{atom(), erl_syntax:syntaxTree(), #ws{nr :: integer(), custom_tags :: term(), is_forloop_var :: boolean(), is_autoid_var :: boolean(), includes :: [binary()], debug_points :: [{binary(), integer(), integer()}]}}], runtime :: atom(), context :: term(), vars_var :: string(), context_var :: string(), context_vars :: [binary()], is_autoescape :: boolean(), enabled_debug_points :: all | map()}, #ws{nr :: integer(), custom_tags :: term(), is_forloop_var :: boolean(), is_autoid_var :: boolean(), includes :: [binary()], debug_points :: [{binary(), integer(), integer()}]}) -> {#ws{nr :: integer(), custom_tags :: term(), is_forloop_var :: boolean(), is_autoid_var :: boolean(), includes :: [binary()], debug_points :: [{binary(), integer(), integer()}]}, erl_syntax:syntaxTree()}.