Home

Castle Stronghold

Table of contents

  • 1 What? I wasn't listening
  • 2 Installing it
  • 3 Available generators
  • 4 Configuration
  • 5 Roadmap
  • 6 Author

Generator

The Generator project is a fully customizable code generator written in Boo and templates with ASP style syntax.

The scaffold and project generators are heavily inspired by RoR, it generates real code you can modify for the controller, the views, layouts, css and tests. The CRUD views will look similar to current MR scaffold with the difference that the code is live in you project so you can add a field, color, validation, change the workflow without copy-pasting (hurrr...) from the last controller you've done! Plus you already got some running tests!

This is a work in progress and considered in early alpha stage so use at your own risk but contributions or comments are welcome.

What? I wasn't listening

* http://video.google.com/videoplay?docid=8788726275243372418 Full MonoRail project generation screencast (With TextMate) * http://nproject.sf.net/GeneratorDemo.wmv ActiveRecord Scaffolding in MonoRail screencast (With Visual Studio)

Installing it

To install from source: * svn co http://svn.castleproject.org:8080/svn/castlecontrib/generator/trunk generator * cd generator * nant install Now type generate or monorail from everywhere! EVERYWHERE!

Available generators

Here's a list of available generators. To run a generator type: generate GeneratorName === Controller === Generates a controller === Generator === Generates a generator skeleton === Model === Generates an ActiveRecord model class === Project === Generates a new MonoRail project === Scaffold === Generates a CRUD actions controller for a specified model.

Configuration

Edit the file Generators\Config.boo to fit your project structure then run generate from your project root folder.

Roadmap

* Add more complete test cases for the generators * Document each generator on this wiki page. * Document the creation of a new generator on this wiki page. * Add a generator to make coffee and add test cases to make sure the coffee is strong enough

Author

Follow this project development on [http://macournoyer.wordpress.com/ Marc-Andre Cournoyer's blog]

Google
Search WWW Search castleproject.org