View Source template_compiler_utils (template_compiler v2.11.0)
Link to this section Summary
Functions
Return the (universal) modification time of file, 0 on enoent
Set the next "Context" variable name in cs for an enclosed block.
Set the next "Vars" variable name in cs for an enclosed block.
Convert a list or binary to an atom.
Expand escape sequences like \n and \t in a string.
Generate an unique variable name
Link to this section Functions
-spec file_mtime(file:filename_all()) -> calendar:datetime() | 0.
-spec next_context_var(#cs{}, #ws{}) -> {#cs{}, #ws{}}.
-spec next_vars_var(#cs{}, #ws{}) -> {#cs{}, #ws{}}.
-spec pos({file:filename_all(), pos_integer(), pos_integer()}) -> {pos_integer(), pos_integer()}.
-spec set_pos({file:filename_all(), pos_integer(), pos_integer()}, term()) -> term().
-spec to_atom(string() | binary() | atom()) -> atom().
-spec unescape_string_literal(binary()) -> binary().
-spec var(#ws{}) -> {#ws{}, string()}.