-
Notifications
You must be signed in to change notification settings - Fork 807
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dttool] Move most of the logic out of the templates and into helpers
The templates for the various files were extremely difficult to read, mixing a lot of logic with a lot of formatting. Furthermore, the same logic was duplicated between files, which could lead to consistency issues. The new code moves all the logic to python helpers that create data structures, the template only focus on formatting and rendering. Since the dt uses more complex structures than topgen, e.g. nested structures with nested array mapping, a complete set of new classes to deal with this complexity. Signed-off-by: Amaury Pouly <[email protected]>
- Loading branch information
Showing
6 changed files
with
543 additions
and
377 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.