Sha256: 2599346e9fae29ac86addbc235414dc07edc35e9b79dfb1807a688b43ea01ffa

Contents?: true

Size: 514 Bytes

Versions: 1

Compression:

Stored size: 514 Bytes

Contents

require 'logi/config'
require 'logi/compiler'

class Logi
  attr_reader :options, :config, :compiler
  def initialize options={}
    @options  = options
    @config   = Config.new(options)
    @compiler = Compiler.new(options)
  end

  def make
    config.posts.each_value do |post|
      io = compiler.compile(post.command,
                            config.post_path_for(post),
                            config.layout_path_for(post))

      compiler.write(config.output_path_for(post), io)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
logi-0.1.0 lib/logi.rb