Current section
Files
Jump to
Current section
Files
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