calatrava/calatrava — pull request #51 by jagregory (2013-03-11 12:37:20+00:00)
Title: Controller and Page generators

Hey Giles,

What do you think of having some simple Rails-style generators? Is that something that fits with Calatrava?

I've put together one for Controllers and one for Pages, they both only generate the kernel and shell code right now.

```
$ calatrava generate controller foo
created kernel/app/foo/controller.foo.coffee
created kernel/app/foo/init.foo.coffee

$ calatrava generate page bar
created shell/pages/bar/bar.haml
created shell/pages/bar/page.bar.coffee
```

All generated files have some minimal boilerplate, mostly just a method signature or a `div` in the `haml` case.

These could generate the iOS and Android code if necessary, but I don't yet understand entirely what would need to be generated there.

What do you think?

Cheers,
James