README.md

# MercuryOxide
## a NIF for [Liquid-Rust](https://github.com/cobalt-org/liquid-rust)

MercuryOxide a Rusty Liquid

Renders Liquid templates using [Liquid](https://github.com/cobalt-org/liquid-rust)


## To build:
Have rust and cargo installed


## Installation

The package can be installed by adding `mercury_oxide` to your list of dependencies in `mix.exs`:

```elixir
def deps do
  [
    {:mercury_oxide, "~> 0.1.0"}
  ]
end
```

The docs can be found at [https://hexdocs.pm/mercury_oxide](https://hexdocs.pm/mercury_oxide).

## Examples

```
iex> MercuryOxide.render("Hello {{ name | capitalize }}", name: "person")
{:ok, "Hello Person"}
```

```
iex> partial = "Hello {{ name | capitalize }}"
...> MercuryOxide.render("{% include 'greeting' %}, what a nice day", [name: "person"], [greeting: partial])
{:ok, "Hello Person, what a nice day"}
```