Solid
Solid is an implementation in Elixir of the template engine Liquid. It uses neotoma to generate the parser.
Basic Usage
iex> template = "My name is {{ user.name }}"
iex> Solid.parse(template) |> Solid.render(%{ "user" => %{ "name" => "José" } }) |> to_string
"My name is José"
Installation
The package can be installed as:
Add solid to your list of dependencies in
mix.exs:def deps do [{:solid, "~> 0.0.1"}] end
Ensure solid is started before your application:
def application do [applications: [:solid]] end
TODO
- Integration tests using Liquid gem to build fixtures;
- All the standard filters
- Tags (if, case, unless, etc)
- Boolean operators
- Whitespace control