Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimizing code repetitions in ExampleApp by using Zontroy code generator #3

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

tolgahanipek
Copy link

@tolgahanipek tolgahanipek commented Jul 8, 2024

  • Minimizing code repetitions in ExampleApp by using Zontroy code generator

Hi πŸ™‹β€β™‚οΈ @JV-Cunha

By using Zontroy code generator, coding costs were reduced by minimizing code repetitions in ExampleApp.
To explain this briefly, I first created a database from mssql to prevent this code repetition. Then, I ran the Zontroy code generator and made the necessary configuration settings to connect the database I had previously created to Zontroy. Then I pulled the tables of this database from the zontroy in the form of entities and arranged the sections that were the same as the code template but only with different labels, so that the names of the tables and fields in the database would appear. For this, I used zsif and zref file types, which are specific to zontro. For more detailed information, you can check out https://docs.zontroy.com/ . I hope it was useful for you. πŸ™

  • Images of sections where code duplication is prevented using Zontroy

Input: urls.py.zsif:

34

Output: urls.py:

34

Input: example_model_zg-lower(((zg-entity...zg-name))).html.zref:

34

Output: example_model_create.html:

34

Output: example_model_delete.html:

34

Output: example_model_detail.html:

34

Output: example_model_update.html:

34

tolgahanipek and others added 6 commits July 5, 2024 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant