Skip to content

GeneralD/Middleman-Sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Middleman-Sample

language framework templates status

Middleman-Sample hero banner

A minimal sample project for the Middleman static site generator (v4.1, 2017), preconfigured to use Slim templates, Sass (via Compass), and CoffeeScript instead of the default ERB stack.

Note: This is a legacy starter sample from 2017. The pinned gem versions (Middleman 4.1.9, middleman-compass, CoffeeScript) are outdated; treat it as a reference, not a base for new projects.

Features

  • Slim templating with custom shortcut configuration (# → div id, . → div class, & → input type)
  • Sass/SCSS stylesheets with Compass and a bundled _normalize.scss
  • CoffeeScript for JavaScript sources
  • LiveReload enabled in development
  • Layout split into _header / _footer partials

Requirements

  • Ruby with Bundler
  • Gems as pinned in Gemfile.lock (Middleman 4.1.9 era — modern Rubies may need version updates)

Usage

bundle install
bundle exec middleman server   # dev server with LiveReload
bundle exec middleman build    # static build into build/

Project Structure

config.rb                 # Middleman config (Slim options, livereload)
source/
  index.html.slim         # top page
  sample.html.slim        # sample page
  layouts/                # layout.slim, sample.slim, _header/_footer partials
  stylesheets/            # site.css.scss, _normalize.scss
  javascripts/            # all.js.coffee
  images/

About

Legacy sample project for the Middleman 4.1 static site generator with Slim, Sass, and CoffeeScript (2017).

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors