Slim throwing an error

I am trying to use Slim with Middleman and it has been working perfectly. But today I started up Middleman and it gave me a warning:

Slim::EmbeddedEngine is deprecated, it is called Slim::Embedded in Slim 2.0

When I saved a file it was updated but I also got this warning:

Option :locals is not supported by Slim::Engine
Option :layout is not supported by Slim::Engine

Is this anything to worry about? How might I be able to fix this?

Some of these are fixed in the 3.1 series, but they are only warning so I wouldn’t worry about this.

Basically, Slim deprecated some features without providing a clear way for us to tell between the old version and the new version of their API. We can avoid these warnings by being more strict and targeting their latest API, but we haven’t done that yet since many people have existing sites running the old version of Slim.

Another way is to remove middleman-slim and install gem 'slim'

Then in your config.rb add the following lines to the top of this file:

require 'slim'
Slim::Engine.disable_option_validator!