Sha256: ca5316c81efee34c6cdacbf4023e3f3531cb6865dfe03421b7f839f8f80216e5

Contents?: true

Size: 627 Bytes

Versions: 3

Compression:

Stored size: 627 Bytes

Contents

require 'slodown'
require 'sass'
require 'tilt'
require 'slim'
require 'toml'
require 'mime-types'
require 'json'

require "flutterby/version"
require "flutterby/node"
require "flutterby/filters"
require "flutterby/view"


module Flutterby
  extend self

  attr_writer :logger

  def from(fs_path, name: nil, parent: nil)
    name ||= ::File.basename(fs_path)

    if ::File.exist?(fs_path)
      Node.new(name, fs_path: fs_path, parent: parent).tap do |node|
        node.preprocess!
      end
    else
      raise "Path #{fs_path} could not be found."
    end
  end

  def logger
    @logger ||= Logger.new(STDOUT)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
flutterby-0.0.16 lib/flutterby.rb
flutterby-0.0.15 lib/flutterby.rb
flutterby-0.0.14 lib/flutterby.rb