2025-04-16 10:03:13 -03:00

14 lines
269 B
Elixir

defmodule Phoenix.Template.ExsEngine do
@moduledoc """
The Phoenix engine that handles the `.exs` extension.
"""
@behaviour Phoenix.Template.Engine
def compile(path, _name) do
path
|> File.read!()
|> Code.string_to_quoted!(file: path)
end
end