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

Refactor templates to increase template re-use and make them easier to navigate #15

Closed
jhugman opened this issue Jul 9, 2020 · 0 comments · Fixed by #21
Closed

Refactor templates to increase template re-use and make them easier to navigate #15

jhugman opened this issue Jul 9, 2020 · 0 comments · Fixed by #21

Comments

@jhugman
Copy link
Contributor

jhugman commented Jul 9, 2020

There are quite a few places where we're doing the same thing, but with minor differences in the header or footer.

e.g.

  • unpacking arguments, calling method calls with and without a return value
  • methods in enums, namespaces, interfaces, etc etc.
  • iterating through properties to generate lift and lower methods.
  • copyright & similar comments

We should investigate ways our templates could be split up and parameterized so working with templates easier for language experts and more readable.

  1. Decorator stucts and rendering templates in place.
  2. Using the path sub-attribute of the template attribute.
  3. include directive. e.g. {% include "hotmess.txt" %}
  4. Template inheritance.
  5. Template importing.

This is likely a starting point / meta for smaller bugs rather than a specific piece all on its own.

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 a pull request may close this issue.

1 participant