middleman.rb |
|
---|---|
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:
To accomplish its goals, Middleman supports provides access to: Command-line tools:
Tons of templating languages including:
Compile-time Optimiztions
Robust Extensions:Add your own runtime and build-time features! Next Steps: |
|
Setup out load paths |
libdir = File.dirname(__FILE__)
$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir) |
Require Rubygems (probably not necessary) |
require 'rubygems' |
Top-level Middleman object |
module Middleman |
Auto-load modules on-demand |
autoload :Server, "middleman/server"
|
Custom Renderers |
module Renderers
autoload :Haml, "middleman/renderers/haml"
autoload :Sass, "middleman/renderers/sass"
end |
Features API |
autoload :Features, "middleman/features"
end |