Skip to content

latata/simple-code-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-code-generator

Simple code generator is a simple, but powerful tool for multiple text files generator. It can be useful for example to prepare CRUD operations on any web application. It uses Velocity templates and json file with parameters.

Usage

  1. Prepare template directory:
  • it can contain subdirectories and your template files with .vm extension
  • it must contain parameters.json file with your parameters which will be used to fill your templates
  • you can use parameters also in directory names, e.g. __myName__, where myName is a parameter name
  • parameters in template files must be prefixed by p., e.g. ${p.myName}
  1. Put your template direcotry in the same directory as your simlple-code-generator tool.
  2. Run simple-code-generator:
  • java -jar simple-code-generator.jar
  1. It generates code in directory named with _result suffix.

Example

Check an example template directory.

Links

About

Simple code generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages