Thomas Reynolds
950aace674
Make Frontmatter a class-based extension to simplify file
2013-05-24 17:11:46 -07:00
Thomas Reynolds
bcdaad6443
Merge pull request #906 from adamesque/master
...
Make sure Frontmatter data is actually cached
2013-05-23 13:35:01 -07:00
Thomas Reynolds
424fee0722
Cache frontmatter repeated calling of recursively_enhance
2013-05-23 13:31:52 -07:00
Adam Luikart
c60cddc1ac
Make sure Frontmatter data is actually cached. Fixes #903
...
(Can't return a value to early out of a begin…end expression in Ruby)
2013-05-23 14:50:46 -05:00
Ben Hollis
dbbf84016f
Fix c9d151ba66
for when files are outside the project
2013-05-22 23:39:56 -07:00
Thomas Reynolds
c9d151ba66
The file watcher knows which files exist, so don't use slow File.exists?
...
Possible solution for #903
2013-05-22 17:38:01 -07:00
Thomas Reynolds
ca333bb306
avoid warning with empty frontmatter
2013-04-14 09:29:34 -07:00
Thomas Reynolds
0574cc3d28
Support sideloading from .frontmatter files. Closes #855
2013-04-12 16:14:16 -07:00
Ben Hollis
7a4aa109a6
Overhaul content-type handling, making it configurable via page/proxy commands as well as frontmatter with the 'content_type' parameter.
...
Now, users can set content type explicitly for their files in a number of ways, or rely on automatic file-extension content types. Proxied files default to automatic file-extension content types, but then fall back to the content type of the resource they proxy to. There is also a bug fixed around correctly setting content type inside send_file. Fixes #821 .
2013-04-06 15:11:25 -07:00
Ben Hollis
397ccd2c1e
Fix a bunch of Ruby warnings, including a bug in the not_found method
2013-04-06 14:56:08 -07:00
Ben Hollis
1d869b0c08
Simplify frontmatter by removing its resource_list_manipulator
2013-04-06 14:56:08 -07:00
Ben Hollis
c2ffa538ad
Undo my previous change, apparently it is no good
2013-04-04 23:28:28 -07:00
Ben Hollis
f7d1471edb
Handle empty frontmatter without logging an exception
2013-04-04 22:59:05 -07:00
Ben Hollis
52c4677391
Merge remote-tracking branch 'origin/3.0-stable'
...
Conflicts:
middleman-core/lib/middleman-core/core_extensions/data.rb
middleman-core/lib/middleman-core/core_extensions/front_matter.rb
middleman-core/lib/middleman-core/util.rb
middleman-core/middleman-core-x86-mingw32.gemspec
middleman-more/lib/middleman-more/core_extensions/default_helpers.rb
middleman-more/lib/middleman-more/core_extensions/i18n.rb
2013-02-10 15:41:36 -08:00
Thomas Reynolds
c9290c6b11
Allow frontmatter to be parsed on templates outside the project root
2013-02-06 13:19:09 -08:00
Ben Hollis
137ce94d23
Restore indifferent-access behavior to page data and fix broken caching
2013-02-05 23:34:18 -08:00
Ben Hollis
bb2f40cc72
Merge branch '3.0-stable'
...
Conflicts:
README.md
2013-02-05 22:07:05 -08:00
Ben Hollis
aa6564f038
Don't catch Exception when parsing YAML frontmatter
2013-01-27 17:11:54 -08:00
Thomas Reynolds
a76b02a55b
Don't look for frontmatter on binary files. Fixes #728
2013-01-11 17:25:45 -08:00
Thomas Reynolds
2e2516b95a
Don't look for frontmatter on binary files. Fixes #728
2013-01-11 16:58:02 -08:00
Thomas Reynolds
45ddc0c344
Make Sitemap metadata queryable with arel-style API
2012-12-25 16:05:54 -08:00
Casey Leask
dd4c07d9d1
Added fix for empty YAML
2012-12-15 14:52:55 -08:00
Casey Leask
85f06ccecd
Added fix for empty YAML
2012-12-14 14:22:42 +11:00
Thomas Reynolds
af81b588d5
Merge pull request #620 from bhollis/config
...
Move config settings into a separate object
2012-10-14 12:52:19 -07:00
Ben Hollis
4fe22e3fb5
Move more things over to new configs. Don't let root be configured
2012-10-13 22:37:24 -07:00
Ben Hollis
0bf1b476b0
Fix handling of directories with ~ in them
2012-10-11 10:07:03 -07:00
Ben Hollis
ee6add032a
Fix handling of directories with ~ in them
2012-10-10 18:20:20 -07:00
Thomas Reynolds
446aa6a4ba
Clean up whitespace, play with cane for testing style quality and code complexity
2012-08-13 15:41:07 -07:00
Thomas Reynolds
80e36b7c53
Given file-based metadata precedence over config/path metadata. Fixes #552
2012-07-29 10:22:57 -07:00
Thomas Reynolds
de6d7980ac
Use centralized Logger and add instrument methods
2012-07-18 09:30:39 -07:00
Thomas Reynolds
b5b6349220
Only allow frontmatter on first line, unless we have a ruby 1.9 encoding comment, then allow it on the second line. Fixes #446
2012-05-25 13:17:22 -07:00
Thomas Reynolds
dcdbf3e110
change json frontmatter delimeter to the ironic ;;; to avoid interfering with mustache {{{
2012-05-25 12:52:04 -07:00
Thomas Reynolds
182ad87ad3
Catch Psych::SyntaxError. Related to #446
2012-05-24 14:04:25 -07:00
Thomas Reynolds
2c058ee3de
Couple of fixes, specifically an issue with frontmatter layout setting
2012-05-22 19:11:54 -07:00
Ben Hollis
fc9c5e5fa2
Properly clear frontmatter cache when files change, and calculate frontmatter in the right order so resource_list_manipulators can see it.
2012-05-19 18:47:43 -07:00
Ben Hollis
7ad0f51d1a
Always return HashWithIndifferentAccess from frontmatter data
2012-05-19 18:46:58 -07:00
Thomas Reynolds
162622c453
JSON frontmatter and allowing frontmatter to be located after a encoding value
2012-05-09 13:33:14 -07:00
Thomas Reynolds
7929ed6c75
Refactor Frontmatter to use sitemap manipulators. Also fixes #422
2012-05-08 21:10:41 -07:00
Thomas Reynolds
d55fef62b4
Remove usage of autoload statement in favor of require
2012-05-07 14:41:39 -07:00
Thomas Reynolds
2965e3709d
Yard doc cleanup
2012-05-02 11:13:48 -07:00
Ben Hollis
dee0e616ad
Index frontmatter off source_file, allowing us to get rid of Resource#relative_path
2012-04-29 18:51:00 -07:00
Ben Hollis
776ce4d5ae
Properly handle pages with no frontmatter
2012-04-23 22:28:51 -07:00
Ben Hollis
0a677f5de1
Reorder extensions so frontmatter is available before sitemap
2012-04-20 23:38:59 -07:00
Thomas Reynolds
d2d40079cc
Rename Middleman::Base to Middleman::Application
2012-04-14 14:04:10 -07:00
Thomas Reynolds
0bc35db4a6
move util methods into their own namespace
2012-04-14 13:36:24 -07:00
Thomas Reynolds
d935aedd59
Sitemap refactor
2012-04-14 13:17:42 -07:00
Ben Hollis
92713dfe92
Make frontmatter always return a hash, and freeze it. This reduces the need for nil checks and prevents users from accidentally trying to modify frontmatter data which may be cached elsewhere.
2012-03-25 12:53:45 -07:00
Ben Hollis
111d021630
Fix frontmatter ignore to not create phantom pages and to generally be simpler.
2012-03-15 00:27:59 -07:00
Thomas Reynolds
baaa3fd148
change little piece of frontmatter logic
2012-02-12 10:10:59 -08:00
Thomas Reynolds
e3b15366cb
ignore globs, mostly working, except with directory indexes
2012-01-14 14:09:20 -08:00
Thomas Reynolds
d0dd60fb4b
left some debug messages in
2012-01-07 23:48:22 -08:00
Thomas Reynolds
34e40cbe01
Also test frontmatter options in preview mode (exposed proxy bug, which was fixed
2012-01-07 18:11:56 -08:00
Thomas Reynolds
c473181167
frontmatter can control whether a page is ignored
2012-01-07 17:21:26 -08:00
Thomas Reynolds
20fea1bab1
refactor file change api, add a disable-watcher command line option for heroku/hosted
2012-01-02 13:48:07 -08:00
Thomas Reynolds
50b9ad7b28
use aruba for server tests too
2011-12-31 13:44:50 -08:00
Thomas Reynolds
c8a134a386
split into middleman-core and middleman-more
2011-12-29 15:09:51 -08:00