-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. allow that the name of nested macros can be controlled by tokens: eg `<expand macro="@TOKEN_NAME@"/>` therefore: - in load_with_references childs of the macros element are temporarily removed. otherwise the replacement of the nested macros also happens for the expand tags in macros and it seems really difficult to iterate a tree excepting a subtree - in _expand_macro replace tokens first and then consider nested macros see test test_loader_specify_nested_macro_by_token 2. allow token expansion also for attributes (before only attribute values) this only works if the token is valid xml i.e. they can't be surrounded by `@` see test test_loader_token_attribute_name 3. split unit tests in separate functions and add a few (e.g. nested tokens ...)
- Loading branch information
1 parent
7c64721
commit 068f015
Showing
2 changed files
with
243 additions
and
54 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
Oops, something went wrong.