yasuflatland-lf / damascus

⚔️ CRUD boilerplate generator for Liferay DXP
https://yasuflatland-lf.github.io/damascus-doc/
GNU Lesser General Public License v3.0
51 stars 35 forks source link

Template generator from actual code #53

Closed yasuflatland-lf closed 6 years ago

yasuflatland-lf commented 6 years ago

Motivation

At a project, there's a case where a user wants to use Damascus as a service generator of their custom templates. In that case, users repeat a cycle to generate codes and fix templates accordingly. A functionally to assist the cycle efficiency will be beneficial not only for users but also Damascus contributors as well.

The idea of implementation

Replacement patterns

The default replacement patterns between template value and Keywords (model names, package names and directory names) should be generated in base.json file as optional fields at damascus -init command called.

The fields should be customizable as users may want to add custom patterns as well.

yasuflatland-lf commented 6 years ago

Implemented in 097491d2b3f8380a8550815c99d926175e97679e