Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add TemplateConfiguration feature (breaking changes)
This commit introduces breaking changes! TemplateConfiguration class provides the capability to generate the Template Configuration from various input. Input can be files or "in-line" configurations (dicts), these are then merged. The merge functionality has been removed from AS3Declaration entirely, AS3Declaration now expects a simple dict as template_configuration. In addition a Template Configuration File or an "in-line" configuration can use the as3ninja.include namespace to further include configuration files. Nested includes are not supported (an included file cannot include further files) and an included file is only processed once (at the first occurance). Api, Cli and AS3Declaration have been updated accordingly. Furhter AS3Declaration has a new interface, .declaration and .declaration_asjson are now .dict() and .json(). AS3Declaration has no .template_configuration and .configuration properties anymore, AS3TemplateConfiguration is now used for that. AS3TemplateConfiguration uses a new "parent" Class DictLike. DictLike makes classes "feel" like a dict. It adds comparison features, makes dict() class work and provides .get, .keys, .values, .items methods. It also modifies __repr__ and __str__. Any class using DictLike has to set self._dict to the actual target dict, which DictLike basically proxies.
- Loading branch information
1 parent
94bc602
commit 53ebf7c
Showing
21 changed files
with
1,154 additions
and
324 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
Oops, something went wrong.