Static Website Generators

34 views
Skip to first unread message

Samuel Richardson

unread,
Sep 18, 2011, 7:34:54 PM9/18/11
to rails-...@googlegroups.com
Has the list had any experience with static website generators?

I'm in the process of reworking our front end teams method of
generating websites and I'd like to introduce the use of SASS,
CoffeeScript and general good practices (like the use of
includes/partials!). The end result will still be HTML/CSS/JS but I
want the tools we use to get there to be a bit more sophisticated.
This is to enforce better coding and to speed site development up.

I've mocked up and used a prototype system that's similar to how I
want the end tool to work. That is, it will watch a folder full of
SASS files, CoffeeScript files etc and automatically transform them
into there more basic equivalents then compile them together into a
single asset file. What I've built is really just a prototype though,
and it will need quite a bit more work to get it ready for production
and other team members to use. I also don't want to reinvent the
wheel.

I've looked an nanoc, which looks super powerful, but it might be
overkill for what we want. The configuration looks quite complex and
some of the people that are going to be using it are junior front end
devs that might have come from a design background. In other words, it
needs to be somewhat foolproof and easy-ish to use.

I've gone through the static websites category on Ruby Toolbox and it
seems nanoc is the closest to what we want to use. I'd like it to be
fairly mature as well, if possible.

Samuel Richardson
www.richardson.co.nz | 0405 472 748

Arunan Skanthan

unread,
Sep 18, 2011, 8:02:43 PM9/18/11
to rails-...@googlegroups.com
Being a ruby noob coming from a design/front-end background myself; I found nanoc rather easy use... the config does take a bit getting used to but maybe you can create a skeleton on github and get the new folk to just clone it. (I am trying to set it up in such a way myself; so please share any findings if possible... :D)

My $0.02

Cheers,
Arunan


--
You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group.
To post to this group, send email to rails-...@googlegroups.com.
To unsubscribe from this group, send email to rails-oceani...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.




--
@askalot
Website: http://arunanskanthan.com
---
"Ariels in the sky. When you free small mind, you free your life..."

Steven Ringo

unread,
Sep 18, 2011, 8:05:49 PM9/18/11
to rails-...@googlegroups.com
Sam,

I also found nanoc to be overkill. Strongly recommend http://get-serve.com/

Works out the box with HAML and SASS, and makes the upgrade path to rails easy (in terms of how it handles views and partials).

In development mode runs as a rack app, so you can use it with any rack-compliant web server — I use it with pow and works a treat.

If you want to output the static files handles that too.

Steve

Samuel Richardson

unread,
Sep 18, 2011, 8:39:53 PM9/18/11
to rails-...@googlegroups.com
Any support for CoffeeScript in serve? I can't see any mention of it
on their site.

Samuel Richardson
www.richardson.co.nz | 0405 472 748

> --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.

> To view this discussion on the web visit
> https://groups.google.com/d/msg/rails-oceania/-/XNqcqacKFRQJ.

Steven Ringo

unread,
Sep 18, 2011, 8:46:20 PM9/18/11
to rails-...@googlegroups.com
Its in the Gemfile at https://github.com/jlong/serve/blob/master/Gemfile, and there are commits that allude to it, so it must be there. I haven't used CS support myself though.

Arunan Skanthan

unread,
Sep 18, 2011, 9:09:00 PM9/18/11
to rails-...@googlegroups.com
Interesting, does it provide mustache support? Nanoc can't apparently because of the way it is structured... I'd be tempted to switch if it did.

Arunan

--
You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rails-oceania/-/XNqcqacKFRQJ.

To post to this group, send email to rails-...@googlegroups.com.
To unsubscribe from this group, send email to rails-oceani...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.

Samuel Richardson

unread,
Sep 18, 2011, 9:14:30 PM9/18/11
to rails-...@googlegroups.com
Ok, cool. It looks like the generation is static, does it offer a
"live" mode? I.e. it will watch files for changes then update
accordingly?

Samuel Richardson
www.richardson.co.nz | 0405 472 748

> --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To view this discussion on the web visit

> https://groups.google.com/d/msg/rails-oceania/-/mOAODZB-cFUJ.

Steven Ringo

unread,
Sep 18, 2011, 9:19:44 PM9/18/11
to rails-...@googlegroups.com
As it says on the tin:
Static or dynamic – Your choice
Edit and tweak your websites on-the-fly with the Serve server. And when you are ready to deploy, you have two options. Either export to a pure HTML static site or deploy the source on any Ruby-friendly web host.

And in my original reply:

Samuel Richardson

unread,
Sep 18, 2011, 9:24:26 PM9/18/11
to rails-...@googlegroups.com
Ok, thanks :)

Samuel Richardson
www.richardson.co.nz | 0405 472 748

> --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To view this discussion on the web visit

> https://groups.google.com/d/msg/rails-oceania/-/gIEOA5Cnx30J.

Chris Douglas

unread,
Sep 18, 2011, 10:52:38 PM9/18/11
to Ruby or Rails Oceania
Check out https://github.com/mdub/pith

It has layouts, includes and support for haml, sass and coffeescript

Korny Sietsma

unread,
Sep 19, 2011, 12:41:20 AM9/19/11
to rails-...@googlegroups.com
Or for another local effort, try Bonsai: https://github.com/benschwarz/bonsai

- Korny

--
You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group.
To post to this group, send email to rails-...@googlegroups.com.
To unsubscribe from this group, send email to rails-oceani...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.




--
Kornelis Sietsma  korny at my surname dot com http://korny.info
"Every jumbled pile of person has a thinking part
that wonders what the part that isn't thinking
isn't thinking of"

Dominik Grabiec

unread,
Sep 19, 2011, 9:46:53 AM9/19/11
to rails-...@googlegroups.com
If you're rolling your own code anyway may I suggest trying StaticMatic
and rolling your own rake (to build both Haml, Sass, and CoffeeScript)
and Capistrano tasks (for deployment) with that. I've had success with
it in the past.

Dominik

Lyndon Maydwell

unread,
Sep 20, 2011, 8:23:42 PM9/20/11
to rails-...@googlegroups.com
I've had great success recently with a combination of Sinatra and wget.

Ben Schwarz

unread,
Sep 21, 2011, 1:28:53 AM9/21/11
to rails-...@googlegroups.com
With the advantage of having written one of these, I'd say "serve" is probably the best answer in the thread thus-far… 

Bonsai is good for abstracting that any ruby is being used (apart from it coming in gem-form), so it has been a hit with designery people.

Honestly though, I just use a sintra application every time. 

Samuel Richardson

unread,
Sep 22, 2011, 1:09:05 AM9/22/11
to rails-...@googlegroups.com
Still investigating options and I've dug up something that seems to sit in between nanoc and serve in terms of complexity and features:


Samuel Richardson
www.richardson.co.nz | 0405 472 748


--
You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rails-oceania/-/htbc3yVltRsJ.

suranyami

unread,
Sep 26, 2011, 8:00:30 AM9/26/11
to Ruby or Rails Oceania
Jekyll seems good:

http://jekyllrb.com/



On Sep 22, 3:09 pm, Samuel Richardson <s...@richardson.co.nz> wrote:
> Still investigating options and I've dug up something that seems to sit in
> between nanoc and serve in terms of complexity and features:
>
> http://middlemanapp.com/
>
> Samuel Richardsonwww.richardson.co.nz| 0405 472 748

Nahum Wild

unread,
Sep 26, 2011, 4:10:54 PM9/26/11
to rails-...@googlegroups.com
I use it for my blog without any issues. I've recently discovered this which sits ontop of Jekyll: http://octopress.org/

--nahum
Reply all
Reply to author
Forward
0 new messages