Current section

Files

Jump to
still lib still preprocessor slime renderer.ex
Raw

lib/still/preprocessor/slime/renderer.ex

defmodule Still.Preprocessor.Slime.Renderer do
@moduledoc """
`Still.Preprocessor.Renderer` implementation for Slime files.
"""
use Still.Preprocessor.Renderer,
extensions: [".slime"],
preprocessor: Still.Preprocessor.Slime
@impl true
def compile(content) do
Slime.Renderer.precompile(content)
|> EEx.compile_string(file: __ENV__.file, line: __ENV__.line)
end
@impl true
def ast do
quote do
require EEx
require Slime
end
end
end