middleman/lib/middleman.rb

78 lines
2.5 KiB
Ruby
Raw Normal View History

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)
# * Slim (.slim)
2011-02-11 08:14:33 +01: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
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
autoload :Server, "middleman/server"
2011-02-11 08:14:33 +01:00
# Custom Renderers
module Renderers
2010-09-25 00:56:04 +02:00
autoload :Haml, "middleman/renderers/haml"
autoload :Sass, "middleman/renderers/sass"
autoload :Slim, "middleman/renderers/slim"
autoload :Markdown, "middleman/renderers/markdown"
autoload :CoffeeScript, "middleman/renderers/coffee_script"
end
2011-02-11 08:14:33 +01:00
# Features API
autoload :Features, "middleman/features"
2010-08-06 18:59:38 +02:00
end