Walrus the Cat
Walrus the Cat

Reputation: 2404

How to specify Middleman's partials directory globally?

In Middleman, I can specify that I want to yield a partial located in a specific directory by using

= partial "partials/imports/js"

I'd like Middleman to know in which directory my partials reside. How do I modify config.rb so that I can just use = partial "js"?

Upvotes: 2

Views: 1484

Answers (1)

Aris FM
Aris FM

Reputation: 176

You can change the default partials directory by using set in your config.rb like this:

set :partials_dir, 'partials/imports'

Upvotes: 4

Related Questions