2011-02-11 08:14:33 +01:00
|
|
|
# Middleman is a static site renderer that provides all the conveniences of
|
|
|
|
# a modern web stack, like Ruby on Rails, while remaining focused on building
|
|
|
|
# the fastest, most-professional sites possible
|
|
|
|
#
|
|
|
|
# Install Middleman:
|
|
|
|
#
|
|
|
|
# gem install middleman
|
|
|
|
#
|
|
|
|
# To accomplish its goals, Middleman supports provides access to:
|
|
|
|
#
|
|
|
|
#### Command-line tools:
|
|
|
|
# * **mm-init**: A tool for creating to new static sites.
|
|
|
|
# * **mm-server**: A tool for rapidly developing your static site.
|
|
|
|
# * **mm-build**: A tool for exporting your site into optimized HTML, CSS & JS.
|
|
|
|
#
|
|
|
|
#### Tons of templating languages including:
|
|
|
|
# * ERB (.erb)
|
|
|
|
# * Interpolated String (.str)
|
|
|
|
# * Sass (.sass)
|
|
|
|
# * Scss (.scss)
|
|
|
|
# * Haml (.haml)
|
|
|
|
# * Sass (.sass)
|
|
|
|
# * Less CSS (.less)
|
|
|
|
# * Builder (.builder)
|
|
|
|
# * Liquid (.liquid)
|
|
|
|
# * RDiscount (.markdown)
|
|
|
|
# * RedCloth (.textile)
|
|
|
|
# * RDoc (.rdoc)
|
|
|
|
# * Radius (.radius)
|
|
|
|
# * Markaby (.mab)
|
|
|
|
# * Nokogiri (.nokogiri)
|
|
|
|
# * Mustache (.mustache)
|
|
|
|
# * CoffeeScript (.coffee)
|
|
|
|
#
|
|
|
|
#### Compile-time Optimiztions
|
|
|
|
# * Javascript Minifiers: YUI, Google Closure & UglifyJS
|
|
|
|
# * Smush.it Image Compression
|
|
|
|
# * CSS Minification
|
|
|
|
#
|
|
|
|
#### Robust Extensions:
|
|
|
|
# Add your own runtime and build-time features!
|
|
|
|
#
|
|
|
|
#### Next Steps:
|
|
|
|
# * [Visit the website]
|
|
|
|
# * [Read the wiki]
|
|
|
|
# * [Email the users group]
|
|
|
|
# * [Submit bug reports]
|
|
|
|
#
|
|
|
|
# [Visit the website]: http://middlemanapp.com
|
|
|
|
# [Read the wiki]: https://github.com/tdreyno/middleman/wiki
|
|
|
|
# [Email the users group]: http://groups.google.com/group/middleman-users
|
|
|
|
# [Submit bug reports]: https://github.com/tdreyno/middleman/issues
|
|
|
|
|
|
|
|
# Setup out load paths
|
2009-10-23 02:25:15 +02:00
|
|
|
libdir = File.dirname(__FILE__)
|
|
|
|
$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
|
|
|
|
|
2011-02-11 08:14:33 +01:00
|
|
|
# Require Rubygems (probably not necessary)
|
2010-02-15 22:02:20 +01:00
|
|
|
require 'rubygems'
|
2010-03-03 07:00:46 +01:00
|
|
|
|
2011-02-11 08:14:33 +01:00
|
|
|
# Top-level Middleman object
|
2010-03-03 07:00:46 +01:00
|
|
|
module Middleman
|
2011-02-11 08:14:33 +01:00
|
|
|
# Auto-load modules on-demand
|
2010-09-07 03:48:25 +02:00
|
|
|
autoload :Server, "middleman/server"
|
|
|
|
|
2011-02-11 08:14:33 +01:00
|
|
|
# Custom Renderers
|
2010-09-07 03:48:25 +02:00
|
|
|
module Renderers
|
2010-09-25 00:56:04 +02:00
|
|
|
autoload :Haml, "middleman/renderers/haml"
|
|
|
|
autoload :Sass, "middleman/renderers/sass"
|
2011-06-02 19:48:56 +02:00
|
|
|
autoload :Slim, "middleman/renderers/slim"
|
2010-09-07 03:48:25 +02:00
|
|
|
end
|
|
|
|
|
2011-02-11 08:14:33 +01:00
|
|
|
# Features API
|
2010-09-07 03:48:25 +02:00
|
|
|
autoload :Features, "middleman/features"
|
2010-08-06 18:59:38 +02:00
|
|
|
end
|