al-quran.reflectslight.io/nanoc/lib/mixin.rb

24 lines
435 B
Ruby
Raw Normal View History

2023-10-07 08:21:48 +02:00
# frozen_string_literal: true
module Mixin
2023-10-07 22:44:58 +02:00
require "memoize"
extend Memoize
2023-10-07 08:21:48 +02:00
require_relative "mixin/t"
require_relative "mixin/inline"
require_relative "mixin/erb"
require_relative "mixin/opengraph"
def build_dir
nanoc = Ryo.from YAML.load_file(File.join(Dir.getwd, "nanoc.yaml"))
nanoc.output_dir
end
2023-10-07 22:44:58 +02:00
memoize :build_dir
2023-10-07 08:21:48 +02:00
include T
include Inline
include ERB
include OpenGraph
end
use_helper Mixin