2011-02-11 02:14:33 -05: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)
|
2011-06-23 21:05:25 -04:00
|
|
|
# * Slim (.slim)
|
2011-02-11 02:14:33 -05:00
|
|
|
# * 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-22 20:25:15 -04:00
|
|
|
libdir = File.dirname(__FILE__)
|
|
|
|
$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
|
|
|
|
|
2011-02-11 02:14:33 -05:00
|
|
|
# Require Rubygems (probably not necessary)
|
2010-02-15 16:02:20 -05:00
|
|
|
require 'rubygems'
|
2010-03-03 01:00:46 -05:00
|
|
|
|
2011-02-11 02:14:33 -05:00
|
|
|
# Top-level Middleman object
|
2010-03-03 01:00:46 -05:00
|
|
|
module Middleman
|
2011-02-11 02:14:33 -05:00
|
|
|
# Auto-load modules on-demand
|
2010-09-06 21:48:25 -04:00
|
|
|
autoload :Server, "middleman/server"
|
|
|
|
|
2011-02-11 02:14:33 -05:00
|
|
|
# Custom Renderers
|
2010-09-06 21:48:25 -04:00
|
|
|
module Renderers
|
2010-09-24 18:56:04 -04:00
|
|
|
autoload :Haml, "middleman/renderers/haml"
|
|
|
|
autoload :Sass, "middleman/renderers/sass"
|
2011-06-02 13:48:56 -04:00
|
|
|
autoload :Slim, "middleman/renderers/slim"
|
2011-06-27 16:10:09 -04:00
|
|
|
autoload :Markdown, "middleman/renderers/markdown"
|
|
|
|
autoload :CoffeeScript, "middleman/renderers/coffee_script"
|
2010-09-06 21:48:25 -04:00
|
|
|
end
|
2011-07-06 12:50:34 -04:00
|
|
|
|
|
|
|
module CoreExtensions
|
|
|
|
# DefaultHelpers are the built-in dynamic template helpers.
|
|
|
|
autoload :DefaultHelpers, "middleman/core_extensions/default_helpers"
|
|
|
|
|
|
|
|
# Data looks at the data/ folder for YAML files and makes them available
|
|
|
|
# to dynamic requests.
|
|
|
|
autoload :Data, "middleman/core_extensions/data"
|
|
|
|
end
|
2010-09-06 21:48:25 -04:00
|
|
|
|
2011-02-11 02:14:33 -05:00
|
|
|
# Features API
|
2010-09-06 21:48:25 -04:00
|
|
|
autoload :Features, "middleman/features"
|
2010-08-06 12:59:38 -04:00
|
|
|
end
|