middleman
static site generator built with Ruby
TLDR
Create new project
SYNOPSIS
middleman [init] [server] [build] [article] [options]
DESCRIPTION
Middleman is a static site generator built with Ruby. It uses templates, layouts, and data files to produce static HTML, CSS, and JavaScript.
The development server provides live reloading. Changes to source files automatically refresh the browser. This speeds up the design and development workflow.
Templates support ERB, Haml, Slim, and other Ruby templating languages. Asset pipeline handles Sass, CoffeeScript, and JavaScript bundling.
Data files in YAML or JSON populate templates dynamically. This separates content from presentation, enabling data-driven pages.
The blog extension adds post creation, tagging, and pagination. Articles are written in Markdown with YAML frontmatter.
Build produces a static site in the build directory, ready for deployment to any web server or CDN.
PARAMETERS
init NAME
Create new project.server, s
Start development server.build, b
Build static site.article TITLE
Create new blog article.console
Start interactive console.--port PORT
Server port (default 4567).--bind HOST
Server bind address.--clean
Remove orphaned files during build.--verbose
Verbose output.--environment ENV
Build environment (development, production).--help
Show help.
CAVEATS
Requires Ruby environment. Plugin dependencies can be complex. Build times increase with site size. Some plugins may conflict.
HISTORY
Middleman was created by Thomas Reynolds starting around 2009. It brought modern web development practices (asset pipeline, live reload) to static site generation. The project influenced later static site generators.
