Skip to content
Liquid template engine in Elixir
Elixir Liquid Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib Add support to the break tag Oct 19, 2019
tasks Initial commit Sep 4, 2016
test Add support to the break tag Oct 19, 2019
.formatter.exs mix format Oct 6, 2019
.gitignore Add /doc to .gitignore Sep 4, 2016
.travis.yml mix format Oct 6, 2019
LICENSE Initial commit Sep 4, 2016
README.md Update README.md Oct 19, 2019
mix.exs Bump poison from 2.2.0 to 4.0.1 Oct 7, 2019
mix.lock

README.md

Solid Build Status

Solid is an implementation in Elixir of the template engine Liquid. It uses nimble_parsec to generate the parser.

Basic Usage

iex> template = "My name is {{ user.name }}"
iex> {:ok, template} = Solid.parse(template)
iex> Solid.render(template, %{ "user" => %{ "name" => "José" } }) |> to_string
"My name is José"

Installation

The package can be installed with:

def deps do
  [{:solid, "~> 0.2.0"}]
end

TODO

  • Integration tests using Liquid gem to build fixtures; #3
  • All the standard filters #8
  • Support to custom filters #11
  • Tags (if, case, unless, etc)
    • for
      • else
      • break
      • continue
      • limit
      • offset
      • Range (3..5)
      • reversed
      • forloop object
    • raw #18
    • cycle #17
    • capture #19
    • increment #16
    • decrement #16
  • Boolean operators #2
  • Whitespace control #10
You can’t perform that action at this time.