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

Adds template resources as constants #117

Merged
merged 2 commits into from
Jun 6, 2024

Conversation

desaikd
Copy link
Contributor

@desaikd desaikd commented Jun 6, 2024

Issue #, if available:

Description of changes:

This PR works on adding template resources as constants. This change makes the template files as string constants which can be used by the binary crate.

List of changes:

  • Adds template modules rust and java that contains all string constants pointing to corresponding template.
  • Changed tera to be instantiated as default and then all these constants are used to add raw templates to tera.

Test

Tested with brew test to make sure that generate subcommand has access to templates.
Related PR: amazon-ion/homebrew-ion-cli#7


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@desaikd desaikd requested a review from popematt June 6, 2024 00:17
@desaikd desaikd merged commit b23594c into amazon-ion:master Jun 6, 2024
4 checks passed
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.

2 participants