moar fixes
This commit is contained in:
parent
61d7e8abed
commit
e125fc67b3
7 changed files with 12 additions and 17 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2.0.9
|
||||||
|
=====
|
||||||
|
- Added --glob option to build which only builds matching files
|
||||||
|
- Allow data/ files to be in JSON format as well
|
||||||
|
- Enabled Liquid {% include %} tag
|
||||||
|
- RubyInstaller-specific gem
|
||||||
|
|
||||||
2.0.8
|
2.0.8
|
||||||
=====
|
=====
|
||||||
- Support accessing variables and data objects in ERb Sprockets files (library.js.coffee.erb)
|
- Support accessing variables and data objects in ERb Sprockets files (library.js.coffee.erb)
|
||||||
|
|
|
@ -6,7 +6,7 @@ require "active_support/core_ext/class/attribute_accessors"
|
||||||
|
|
||||||
module Middleman::Base
|
module Middleman::Base
|
||||||
class << self
|
class << self
|
||||||
def registered(app)
|
def registered(app)
|
||||||
app.extend ClassMethods
|
app.extend ClassMethods
|
||||||
app.send :include, InstanceMethods
|
app.send :include, InstanceMethods
|
||||||
|
|
||||||
|
|
|
@ -5,14 +5,14 @@ require 'rack/test'
|
||||||
SHARED_SERVER = Middleman.server
|
SHARED_SERVER = Middleman.server
|
||||||
SHARED_SERVER.set :environment, :build
|
SHARED_SERVER.set :environment, :build
|
||||||
|
|
||||||
module Middleman
|
module Middleman
|
||||||
module ThorActions
|
module ThorActions
|
||||||
def tilt_template(source, *args, &block)
|
def tilt_template(source, *args, &block)
|
||||||
config = args.last.is_a?(Hash) ? args.pop : {}
|
config = args.last.is_a?(Hash) ? args.pop : {}
|
||||||
destination = args.first || source
|
destination = args.first || source
|
||||||
|
|
||||||
# source = File.expand_path(find_in_source_paths(source.to_s))
|
# source = File.expand_path(find_in_source_paths(source.to_s))
|
||||||
context = instance_eval('binding')
|
# context = instance_eval('binding')
|
||||||
|
|
||||||
request_path = destination.sub(/^#{SHARED_SERVER.build_dir}/, "")
|
request_path = destination.sub(/^#{SHARED_SERVER.build_dir}/, "")
|
||||||
|
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
require 'middleman'
|
|
||||||
run Middleman.server
|
|
|
@ -15,7 +15,7 @@ module Middleman::CoreExtensions::Assets
|
||||||
alias :included :registered
|
alias :included :registered
|
||||||
end
|
end
|
||||||
|
|
||||||
module ClassMethods
|
module ClassMethods
|
||||||
def register_asset_handler(handler_name, &block)
|
def register_asset_handler(handler_name, &block)
|
||||||
@asset_handler_map ||= []
|
@asset_handler_map ||= []
|
||||||
@asset_handler_stack ||= []
|
@asset_handler_stack ||= []
|
||||||
|
|
|
@ -76,6 +76,7 @@ module Middleman::CoreExtensions::Compass
|
||||||
build_root = File.basename(self.build_dir)
|
build_root = File.basename(self.build_dir)
|
||||||
config.css_dir = File.join(build_root, self.css_dir)
|
config.css_dir = File.join(build_root, self.css_dir)
|
||||||
config.images_dir = File.join(build_root, self.images_dir)
|
config.images_dir = File.join(build_root, self.images_dir)
|
||||||
|
config.fonts_dir = File.join(build_root, self.fonts_dir)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
module Middleman::Features::TinySrc
|
|
||||||
class << self
|
|
||||||
def registered(app)
|
|
||||||
app.register_asset_handler :tiny_src do |path, prefix, request|
|
|
||||||
original_output = app.before_asset_handler(:tiny_src, path, prefix, request)
|
|
||||||
"http://i.tinysrc.mobi/#{original_output}"
|
|
||||||
end
|
|
||||||
end
|
|
||||||
alias :included :registered
|
|
||||||
end
|
|
||||||
end
|
|
Loading…
Reference in a new issue