g8-scaffold add code generation abilities to giter8, after a project has been generated.
You need to add the plugin to your sbt project, in
addSbtPlugin("net.databinder.giter8" % "giter8-scaffold" % "0.4.6-SNAPSHOT")
giter8 expects scaffold templates to live into
src/main/scaffolds in the original g8 template.
Scaffolding files will be copied into the
.g8 folder of your project.
In the sbt console type:
The name of the scaffold is the name of the folder located directly under
.g8 folder has the following structure:
.g8 |_ model |_ view |_ controller
You have 3 different scaffodings available.
To generate a new template, just type
As usual, g8 will ask for the variable values, and generate the correct code.