Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
An example extension for middleman.
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
Gemfile
Gemfile.lock
LICENSE.txt
README.md
Rakefile
VERSION
middleman-example-extension.gemspec

README.md

middleman-example-extension

This is an example extension for middleman. The goal of this project is to help you learn how to write extensions for middleman.

Installation

First, install the gem:

cd PATH_TO_MY_MIDDLEMAN_SITE
git clone git@github.com:dhulihan/middleman-example-extension.git vendor/gems/middleman-example-extension

Add this to Gemfile:

gem "middleman-example-extension", :path => File.expand_path(File.dirname(__FILE__) + "/vendor/gems")

Add this to config.rb:

activate :middleman_example_extension do |middleman_example_extension| 
    middleman_example_extension.foo = "baz"
end 
Something went wrong with that request. Please try again.