News for hackers. Stuff that matters.
Re:Open-Source Static Site Generators by nness on Wednesday May 21, 2014 @09:54AM (#7778194)
I've been involved in some incredibly large front-end development projects and Middleman was core to our FED workflow. Its a fantastic tool.
Re:Open-Source Static Site Generators by bchen on Wednesday May 21, 2014 @11:07AM (#7778614)
I’ve been doing the same—building a fairly large content-based website with around 100 pages for a telecom using Middleman. The site will be live soon, and I hope to be able to share more info about it when that happens.

So far, what I can tell is that Middleman provides a more efficient workflow than the database-driven CMSes I have used in the past.

Re:Open-Source Static Site Generators by cabbeer on Wednesday May 21, 2014 @10:06AM (#7778271)
What does it offer over jekyll?
Re:Open-Source Static Site Generators by bobfunk on Wednesday May 21, 2014 @12:13PM (#7779017)
They're different.

Jekyll has a very simple, convention driven feel to it. Templating is based on Liquid which can be a limitation in some cases.

Middleman feels more like Rails for static sites. Out of the box templates are ERB, which is messier but more flexible than Liquid.

StaticGen.com is built with Middleman, and that made it easy to add a Github extension that would pull in all the repository statistics from Github during the build and make this available to the views.

Re:Open-Source Static Site Generators by amalag on Wednesday May 21, 2014 @10:34AM (#7778433)
Jekyll is more blog centric. Middleman is more generic. I have used Middleman for non-blog sites where you just need some simple functionality of templates and partials.
Re:Open-Source Static Site Generators by rubiquity on Wednesday May 21, 2014 @10:23AM (#7778376)
I'm wondering this as well. I've really enjoyed Jekyll in the past and the latest version of Jekyll has support for Sass and CoffeeScript compilation out of the box now (not that it was hard to add before, but nice to just have now). I would also like to know about what Middleman offers.

I must admit, one thing about Middleman that makes me roll my eyes is the use of "Hand-crafted" in the description of the project.

Re:Open-Source Static Site Generators by icambron on Wednesday May 21, 2014 @06:16PM (#7781087)
From Middleman's site: "Middleman ships with support for the ERb, Haml, Sass, Scss and CoffeeScript engines." I swap in a middleman-slim plugin, though.
Re:Open-Source Static Site Generators by rubiquity on Wednesday May 21, 2014 @06:49PM (#7781204)
So it seems that Middleman offers very little than the latest version of Jekyll, though I did read someone say Middleman is more focused on pages as opposed to Jekyll being very focused on a blog/posts.
Re:Open-Source Static Site Generators by icambron on Wednesday May 21, 2014 @06:54PM (#7781229)
I haven't used the latest version of Jekyll, but from having used older ones, I can say Middleman definitely feels more flexible to me, in terms of how its configured. See my comment elsewhere in this subthread for more color on that.
Re:Open-Source Static Site Generators by icambron on Wednesday May 21, 2014 @06:03PM (#7781030)
I've used both, and I got a lot more flexibility and familiarity out of Middleman. It's built as a web application framework that saves all its rendered pages as HTML, so it feels more like setting up a Sinatra app than anything else. I felt like I was fighting Jekyll and its conventions, but merely configuring Middleman and its plugins. Looking at the config file for my personal site, it's got blog stuff, layout variables, helpers, markdown customization, and an asset pipeline all set up with an easy DSL. [1] IOW: use Jekyll for simplicity, use Middleman for control.

[1] https://github.com/icambron/isaaccambron.com/blob/master/con...

Re:Open-Source Static Site Generators by notahacker on Wednesday May 21, 2014 @01:37PM (#7779554)
A major strength of Middleman over most static site generators (including Jekyll until v2 launched recently) is the ability to generate large numbers of HTML pages from a single YAML (or JSON) array: the sort of thing you'd usually use a database for.

Ironically the folks at Meteor have pushed this approach the most: https://www.discovermeteor.com/blog/three-middleman-hacks-we...