View Source Solid.Sigil (solid v0.18.0)

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

Link to this macro

sigil_LIQUID(arg, modifiers)

View Source (macro)