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

Add custom templates option #19

Merged
merged 2 commits into from
Feb 7, 2024
Merged

Conversation

FelipeGuzmanSierra
Copy link
Collaborator

@FelipeGuzmanSierra FelipeGuzmanSierra commented Feb 6, 2024

Description

In this PR, a format_configuration was added to process custom templates based on the specific use case. The template should be included in the options map when initializing the use case (a required parameter). For example:

 options = {
    format_options: {
      template: "Happy birthday individual_name, today birth_date is your day!"
    }
  }

In the template, the attributes of the respective use case domain can be set to be replaced by the corresponding data after execution.

Closes #25

@FelipeGuzmanSierra FelipeGuzmanSierra added the 👍 Feature New feature or request label Feb 6, 2024
@FelipeGuzmanSierra FelipeGuzmanSierra self-assigned this Feb 6, 2024
Copy link
Member

@L-Zuluaga L-Zuluaga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Pretty interesting approach you used here, nice work! 🚀

@FelipeGuzmanSierra FelipeGuzmanSierra merged commit d910690 into main Feb 7, 2024
5 checks passed
@FelipeGuzmanSierra FelipeGuzmanSierra deleted the add-custom-templates branch February 7, 2024 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👍 Feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add custom templates option
2 participants