middleman/middleman-core/lib/middleman-core
Ben Hollis 4d5c509688 Fix several issues around i18n and resource metadata.
There are a few things changing here. One is that we always dup metadata before using it - this prevents a class of nasty bugs where after the first resource list build, blocks had been deleted from metadata hashes, meaning they would no longer be applied. Now they will always stick around. Then, I made sure that whenever we render a file, we save the previous I18n.locale and restore it afterwards, in case people change locale from blocks. This should help in some weird cases where files are rendered recursively. Finally, I've added a :lang option that can be used from "page" or "proxy" to allow people to specify the language for one or more files without having to pass a block that sets I18n.locale directly, which should make that pattern much cleaner. This fixes #809 and may also fix middleman/middleman-blog#106.
2013-04-03 00:07:31 -07:00
..
cli Merge branch '3.0-stable' 2013-03-10 16:32:55 -07:00
core_extensions Fix several issues around i18n and resource metadata. 2013-04-03 00:07:31 -07:00
meta_pages Add a metadata page for inspecting configuration. 2013-02-10 16:43:37 -08:00
renderers Merge remote-tracking branch 'origin/3.0-stable' 2013-03-02 22:32:03 -08:00
sitemap Fix several issues around i18n and resource metadata. 2013-04-03 00:07:31 -07:00
step_definitions Merge branch '3.0-stable' 2013-03-10 16:32:55 -07:00
templates Changed 'default' and 'html5' templates to use 'current_page.data.title' instead of 'data.page.title' 2013-03-17 18:18:59 +01:00
vendor/hooks-0.2.0 Clean up whitespace, play with cane for testing style quality and code complexity 2012-08-13 15:41:07 -07:00
application.rb Ruby 2.0 switches to using #inspect instead of #to_s when printing out objects, which brings back the infinite-hang-on-NoMethodError bug from http://bugs.ruby-lang.org/issues/4521. Aliasing #inspect to #to_s for Middleman::Application fixes it again. This fixes #833. 2013-04-02 22:20:37 -07:00
cli.rb Add an experimental "console" CLI command. 2013-02-10 16:12:32 -08:00
configuration.rb Fix method comments 2013-03-29 03:15:33 +09:00
core_extensions.rb Implement the :encoding setting which defaults to 'utf-8' 2012-06-16 06:07:50 +08:00
extensions.rb simplest thing that could work implementation of Middleman::Extension 2013-03-23 15:35:38 -07:00
load_paths.rb Clean up whitespace, play with cane for testing style quality and code complexity 2012-08-13 15:41:07 -07:00
logger.rb Don't require securerandom - not sure what it was there for, but its not available in JRuby 2013-03-10 16:32:24 -07:00
meta_pages.rb Add a metadata page for inspecting configuration. 2013-02-10 16:43:37 -08:00
preview_server.rb just call needs_to_reload? once 2013-03-22 18:28:38 +01:00
profiling.rb Clean up whitespace, play with cane for testing style quality and code complexity 2012-08-13 15:41:07 -07:00
sitemap.rb Merge remote-tracking branch 'origin/3.0-stable' 2013-02-10 18:05:24 -08:00
step_definitions.rb Clean up whitespace, play with cane for testing style quality and code complexity 2012-08-13 15:41:07 -07:00
templates.rb Add skip-gemfile, skip-bundle, and skip-git options to middleman init, aligning with rails options. 2012-09-14 23:32:46 -07:00
util.rb Fix method comments 2013-03-29 03:15:33 +09:00
version.rb adapt to bundler changes, add ruby 2.0 to tests, prep release 2013-02-24 13:44:24 -08:00