n8han/giter8 — pull request #33 by pvlugter (2012-02-13 06:11:40+00:00)
Title: Add some formatting options for attributes

Use an AttributeRenderer to provide various formatting options.

For example, `name="My Project"` can be rendered in several ways now:

$name$ -> "My Project"
$name; format="camel"$ -> "myProject"
$name; format="Camel"$ -> "MyProject"
$name; format="normalized"$ -> "my-project"
$name; format="lower,hyphen"$ -> "my-project"

For filenames a format can be specified after double underscore. For example, `$organization__packaged$` will change `org.somewhere` to `org/somewhere` like the built-in support for `package`.

Test project that I tried is here:
https://github.com/pvlugter/formatted-test.g8