Generator script

Since 1.3

Overview

The generator script, bin/generate.erl is an escript that is responsible for preparing the most common modules' skeletons. At this moment it supports two types of operations: creating controller or model modules. Generator script, apart of building the Erlang modules with code scaffolds, updates also the application .app file.

It is possible to pass the parameters to the escript in two ways:

Generating controller module

In order to add the controller module one must run:

$ ./bin/generate.erl controller

This command accepts the following options:

The result of running the command is a creation of the lib/APPLICATION_NAME/src/NAME.erl file, together with the .app file update.

Generating model module

In order to add the model module one must run:

$ ./bin/generate.erl model

This command accepts the following options:

The result of running the command is a creation of the lib/APPLICATION_NAME/src/wtype_NAME.erl file, together with the .app file update.

Generators (last edited 2011-03-20 10:06:52 by BruceFitzsimons)