bump padrino to 0.11.x
This commit is contained in:
parent
c5e2ad6750
commit
8a54645de5
|
@ -4,6 +4,7 @@ master
|
|||
* Include middleman-livereload in default Gemfile
|
||||
* Update Rack dependency to 1.5.x
|
||||
* Update to Listen 1.0.x
|
||||
* Update to padrino-helpers 0.11.x
|
||||
|
||||
3.1.0.beta.1
|
||||
===
|
||||
|
|
|
@ -25,6 +25,8 @@ module Middleman
|
|||
::Tilt.mappings.delete('html') # WTF, Tilt?
|
||||
::Tilt.mappings.delete('csv')
|
||||
|
||||
require 'active_support/core_ext/string/output_safety'
|
||||
|
||||
# Activate custom renderers
|
||||
require "middleman-core/renderers/erb"
|
||||
app.register Middleman::Renderers::ERb
|
||||
|
@ -274,7 +276,9 @@ module Middleman
|
|||
content = callback.call(content, path, locs, template_class)
|
||||
end
|
||||
|
||||
return content
|
||||
output = ::ActiveSupport::SafeBuffer.new
|
||||
output.safe_concat content
|
||||
output
|
||||
ensure
|
||||
# Reset stored buffer
|
||||
@_out_buf = _buf_was
|
||||
|
@ -408,7 +412,7 @@ module Middleman
|
|||
@_out_buf = _buf_was
|
||||
end
|
||||
|
||||
concat_content render_individual_file(layout_path, @current_locs || {}, @current_opts || {}, self) { content }
|
||||
concat_safe_content render_individual_file(layout_path, @current_locs || {}, @current_opts || {}, self) { content }
|
||||
ensure
|
||||
@current_engine = engine_was
|
||||
end
|
||||
|
|
|
@ -19,7 +19,9 @@ module Middleman
|
|||
# Setup Slim options to work with partials
|
||||
::Slim::Engine.set_default_options(
|
||||
:buffer => '@_out_buf',
|
||||
:generator => ::Temple::Generators::StringBuffer
|
||||
:use_html_safe => true,
|
||||
:generator => ::Temple::Generators::RailsOutputBuffer,
|
||||
:disable_escape => true
|
||||
)
|
||||
|
||||
app.after_configuration do
|
||||
|
|
|
@ -26,7 +26,7 @@ Gem::Specification.new do |s|
|
|||
s.add_dependency("rack-test", ["~> 0.6.1"])
|
||||
|
||||
# CLI
|
||||
s.add_dependency("thor", ["~> 0.15.4"])
|
||||
s.add_dependency("thor", ["~> 0.17.0"])
|
||||
|
||||
# Helpers
|
||||
s.add_dependency("activesupport", ["~> 3.2.6"])
|
||||
|
|
|
@ -13,6 +13,8 @@ class Middleman::CoreExtensions::DefaultHelpers < ::Middleman::Extension
|
|||
app.helpers ::Padrino::Helpers::FormatHelpers
|
||||
app.helpers ::Padrino::Helpers::RenderHelpers
|
||||
app.helpers ::Padrino::Helpers::NumberHelpers
|
||||
# app.helpers ::Padrino::Helpers::TranslationHelpers
|
||||
app.helpers ::Padrino::Helpers::Breadcrumbs
|
||||
|
||||
app.config.define_setting :relative_links, false, 'Whether to generate relative links instead of absolute ones'
|
||||
end
|
||||
|
|
|
@ -25,5 +25,5 @@ Gem::Specification.new do |s|
|
|||
s.add_dependency("execjs", ["~> 1.4.0"])
|
||||
s.add_dependency("kramdown", ["~> 1.0.0"])
|
||||
s.add_dependency("i18n", ["~> 0.6.4"])
|
||||
s.add_dependency("padrino-helpers", ["0.10.7"])
|
||||
s.add_dependency("padrino-helpers", ["0.11.1"])
|
||||
end
|
Loading…
Reference in a new issue