Skip to content

forthy/finatra.g8

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a Giter8 template for Finatra

sbt new forthy/finatra.g8

License

Notes

Giter8 will apply templating to the contents of src/main/g8, using the default.properties file within that directory as the prompts for templating.

Giter8 also supports scaffolding using the sbt-giter8-scaffold plugin. There are some intricacies to scaffolding to note:

  • src/main/scaffolds is copied to the output directory as .g8
  • directories immediately below src/main/scaffolds are the templates available
  • scaffolding can have its own prompts, but Giter8 doesn't apply template replacements against scaffolds (otherwise, the output files would no longer be templates), so a templated .g8/controllers/default.properties file exists.
  • The property name has special meaning in Giter8, and is used to identify module outputs. For example a template defined with controlers/src/main/scala/$name$.scala and name=plugin will result in the output plugin/controlers/src/main/scala/plugin.scala. This can be unintuitive, which is why it's documented here

Any files you don't want to have templating applied against can be defined in default.properties as regex in the space-delimited verbatim prompt.

About

Finatra template for giter8

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Scala 100.0%