awesome alternative of ggererator
-
what is gg(ggenerator) it is designed as a code generator to generate code by one data and a template, generating file content is easy using template engine like juicer ..... but files are different, then i designed a structure named fom (file object model) to generate diff files, we can define diffenret fom ,like @ demo.fom after all,all tgt files can be generated by just data and template
-
then i think of more useful easier to use store our template in one center easier to generator ddata
after all,ggenerator is an engine to run your mind, to complete your task you shall change your mind that how to use software to complete your task, you shall use template idea ,never a whole sealed system
and more in examples: ...
- npm i ggenerator.js -g
- gg -h
- require('ggenerator.js').run(dDataPath,template,targetPath,workplace,callback)
- gg empty
- gg empty
when you use comboTemplate(of course not only ct),ddata is in the template.
we must need change some data,it is uiddta
details @ doc/uiddata.md
all config in ./config.json
all details in doc/*
use git to share
git clone https://github.com/aceunlonely/ggenerator-templates
cd ggenerator-templates
gg config
npm i -g history.node
hist
hist -h
hist last