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

WiP: feature TemplateBuilder #1463

Closed
wants to merge 6 commits into from

Conversation

pvojtechovsky
Copy link
Collaborator

A new way how to create a template from any type or any part of type. See example in #1458.

Features:

  • any type can be used as source of the template
  • the part of the source type can be excluded/ included in template by excludeXxx and includeXxx methods. It allows to define one Template type and use it for more related template substitutions. For example 1) create the build type, 2) add all builder methods. Both steps based on same template type, but using different type members.
  • the new type can be created from template
  • the template can be applied to existing type
  • substitution parameters are wrapped into substituteXxx methods, which allows more user friendly definition of template parameters.

This code is experimental I will play with it first and I expect it will be finished in 1 month.

@pvojtechovsky
Copy link
Collaborator Author

The ideas from this PR are in #1686

@pvojtechovsky pvojtechovsky deleted the featTemplateBuilder branch September 1, 2018 07:13
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