Packages

High performant static blog generator.

Current section

Files

Jump to
reblog lib engine loader.ex
Raw

lib/engine/loader.ex

defmodule Reblog.Engine.Loader do
@moduledoc """
Load data about the current configuration.
"""
require Logger
def load(:base_layout, context) do
Logger.info(fn -> [IO.ANSI.cyan, " #{context.template_layout}", IO.ANSI.reset] end)
Map.put(context, :base_layout, File.read!(context.template_layout))
end
end