snor v0.1.0 Snor.Parser

Convert a string into an intermediate representation - a list of nodes.

A node could be one of (mainly) -

  • A raw value, which is a verbatim string
  • An value to be interpolated
  • A custom function to be called, and the arguments

Link to this section Summary

Functions

Parse a string into a list of nodes

Link to this section Types

Link to this type

template_node()

template_node() :: any()

Link to this section Functions

Link to this function

parse(arg)

parse(binary()) :: [template_node()]

Parse a string into a list of nodes