1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00
middleman--middleman/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
..
bin Stop messing with load path in middleman executable 2012-09-15 18:45:14 -07:00
features Support directory name as a data key 2013-03-23 17:17:34 +09:00
fixtures Support directory name as a data key 2013-03-23 17:17:34 +09:00
lib Fix several issues around i18n and resource metadata. 2013-04-03 00:07:31 -07:00
spec Fix binary_spec test for svgz - it's binary 2013-02-10 16:53:38 -08:00
.cane Clean up whitespace, play with cane for testing style quality and code complexity 2012-08-13 15:41:07 -07:00
.cane-exclusions.yml Clean up whitespace, play with cane for testing style quality and code complexity 2012-08-13 15:41:07 -07:00
.gemtest enable gemtest at a per-gem level 2012-01-02 14:48:47 -08:00
middleman-core.gemspec bump tilt requirement, unregister plaintext template. fixes #824 2013-03-18 14:12:49 -07:00
Rakefile The return of the windows gem, for wdm and speedier file watching support 2012-09-01 08:44:02 -07:00