4.4 KiB
4.4 KiB
master
- Rename i18n
lang
andlangs
tolocale
andlocales
. - Avoid matching URLs across new lines. #1689
- Load Middleman Directory when doing
init
over SSL - Fix
external_pipeline
first runs running out of sequence.
4.0.0.rc.2
- Rather than applying layouts to all files which are not .txt, .css, .js, .json: the new behavior is to only default layouts to active for .html
- Switch from Ruby Sass to SassC.
relative_assets
extension overrides localrelative: false
option to stylesheet/javascript tag helpers.- Add
before_server
-hook to the preview server which is run before the Webrick server is started - Add
-d
tomiddleman server
to make it run as daemon - Trigger "Possible File Change" events on files which share an output or template type with a changed file. Allows LiveReload to update on partial changes.
- Added
import_file SOURCE, TARGET
andimport_path SOURCE_FOLDER
to copy resources from outside the project in. Does NOT do file change watching. Perfect forbower_components
.
4.0.0.rc.1
- Removed ability to use JSON as frontmatter. Still allowed in data/ folder.
- Added YAML data postscript. Like frontmatter, but reversed. Attach content after the key/value data as a
:postscript
key to the data structure (if Hash).
4.0.0.beta.2
- Fixed regression causing exceptions to be silently thrown away outside of
--verbose
mode in the dev server. - Pull in
--ssl
option from stable. - Replace
hooks
gem with custom callback solution.
4.0.0.beta.1
- Add
resources
class method to extensions to allow simple string-based resource generation. - rename
app.add_to_instance
toExtension.expose_to_application
for adding extension-local methods to the shared app instance. - rename
app.add_to_config_context
toExtension.expose_to_config
for adding extension-local methods to the sandboxed scope ofconfig.rb
- Add
Extension.expose_to_templates
, which auto binds copies of extension-local methods into a Template context. - 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 - The preview server can now serve over HTTPS using the
--https
flag. It will use an automatic self-signed cert which can be overridden using--ssl_certificate
and--ssl_private_key
. These settings can also be set inconfig.rb