Flexible static sites generator suitable even for big and complex sites with dynamically generated pages such as pages for each tag etc (not on the fly obviously as it just produces HTML).
Find a file
2011-03-03 16:13:55 +00:00
bin Generator is anything what provides #generate method. 2011-03-03 16:13:55 +00:00
example Initial import 2010-10-20 14:42:17 +01:00
lib Added Ace::Static, it's useful for rendering simple templates like about pages etc. 2011-03-03 16:03:56 +00:00
project_generator Initial import 2010-10-20 14:42:17 +01:00
.gitignore Initial import 2010-10-20 14:42:17 +01:00
ace.gemspec Initial import 2010-10-20 14:42:17 +01:00
ace.pre.gemspec Initial import 2010-10-20 14:42:17 +01:00
CHANGELOG Smaller changes. 2011-02-23 04:51:06 +00:00
LICENSE Updated copyright. 2011-02-23 04:50:23 +00:00
README.textile Smaller changes. 2011-02-23 04:51:06 +00:00
simple-templater.scope Initial import 2010-10-20 14:42:17 +01:00
TODO Initial import 2010-10-20 14:42:17 +01:00

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

h1. About

Ace is a static page generator like "Nanoc":http://nanoc.stoneship.org, "Jekyll":https://github.com/mojombo/jekyll or "Webby":http://webby.rubyforge.org/tutorial. How is it different? Well, it's better :) ! I really like Nanoc and I used it for quite a while, but it's not flexible enough. If you need to generate a lot of pages on the fly, it's a hassle. It provides helpers, but helpers are  let's face it  programming style we used to use years back when we yet believed that PHP is actually a really nice language.

Ace chose an OOP approach

Another common proble of these generators is, that they are way too opinionated. Thanks Webby, but I don't give a damn about your Sitemap, thank you very much!

Also, last but not least, Ace has a real template inheritance. Layouts are for kids, real men use template inheritance! What's the advantage? It's incredibly flexible. You can have

h1. Why you should be interested in ace?

In Ace, every page is an instance
Typically I want to define methods, like @post.excerpt

There are also *generators* available for easier generating items on the fly.

Ace has *template inheritance*. I love template inheritance, it's more flexible pattern than layouts.

Tasks for deployment are included.

h1. The boot process

# Load @boot.rb@ where the
# load the rules (controllers / globs mapping)
# load & instantiate the items: only the renderables (concrete post)
# run the filters, layoutin' ... actually this can be defined in the controller
# match the routes, write the files