lib/rakyll.rb in rakyll-0.1.0 vs lib/rakyll.rb in rakyll-0.1.1

- old
+ new

@@ -1,7 +1,7 @@ require 'erb' -require 'yaml' +require 'yaml/front-matter' require 'pathname' require 'fileutils' require 'redcarpet' require "rakyll/version" @@ -10,11 +10,11 @@ require 'rakyll/compiler/copy' require 'rakyll/compiler/create' require 'rakyll/compiler/match' module Rakyll - def self.dsl(&block) - route = Rakyll::Route.new + def self.dsl(opts = {}, &block) + route = Rakyll::Route.new opts route.instance_eval &block route.save end end