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.
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:
rust
andjava
that contains all string constants pointing to corresponding template.tera
to be instantiated asdefault
and then all these constants are used to add raw templates totera
.Test
Tested with
brew test
to make sure thatgenerate
subcommand has access to templates. Related PR: https://github.com/amazon-ion/homebrew-ion-cli/pull/7By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.