2.3 KiB
2.3 KiB
master
- Remove side-loading of CLI tasks from
tasks/
- Add the option of naming
config.rb
asmiddleman.rb
. - Builder extracted from Thor.
after_build
hook now passes an instance of a Builder instead of the Thor CLI. - New FileWatcher API.
- Remove the
partials_dir
setting. Partials should live next to content, or be addressed with absolute paths. - Partials must be named with a leading underscore.
_my_snippet.html.erb
, notmy_snippet.html.erb
. - Removed the
proxy
andignore
options for thepage
command inconfig.rb
. Use theproxy
andignore
commands instead of passing these options topage
. - The
page
command inconfig.rb
can now be used to add data to the page via thedata
argument. It is accessed the same way as frontmatter data, viacurrent_resource.data
. - Add support for
environments
with the-e
CLI flag. Loads additional config fromenvironments/envname.rb
. Removeddevelopment?
helper in favor ofenvironment?(:development)
. Addedserver?
helper to differentiate between build and server mode. - Removed
with_layout
. Use loops ofpage
instead. - Removed Queryable Sitemap API
- Removed
css_compressor
setting, useactivate :minify_css, :compressor =>
instead. - Removed
js_compressor
setting, useactivate :minify_javascript, :compressor =>
instead. - Removed ability to server folders of content statically (non-Middleman projects).
- Prevent local templates being loaded when $HOME is not set
- Removed "Implied Extension feature"
- Remove 'upgrade' and 'install' CLI commands.
- Gemfile may be in a parent directory of your Middleman project root (where 'config.rb' is).
- All dependencies for your Middleman project must be expressed in
Gemfile
- Bundler is no longer optional. - Asciidoc information now available with the
asciidoc
local, which is a normal hash. - Remove
page
template local. Usecurrent_resource
instead. - Dropped support for providing a block to
page
&proxy
. - Dropped support for instance variables inside templates.
- Moved all rendering into
TemplateRenderer
andFileRenderer
- Placed all template evaluation inside the
TemplateContext
class - Remove deprecated
request
instance - Remove old module-style extension support
- Placed all
config.rb
evaluation inside theConfigContext
class