Solid.Sigil (solid v1.0.0-rc.0)

View Source

Provides the ~LIQUID sigil for validating and compiling Liquid templates using Solid.

This sigil validates the template at compile time and returns a compiled Solid template. If the template has syntax errors, it will raise a CompileError with detailed information.

Examples

iex> import Solid.Sigil
iex> template = ~LIQUID"""
...> Hello, {{ name }}!
...> """
iex> Solid.render(template, %{"name" => "World"})
{:ok, "Hello, World!"}

Summary

Functions

sigil_LIQUID(arg, modifiers)

(macro)