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

Configurable behavior on bad model reference #31

Closed
CPonty opened this issue Dec 7, 2015 · 0 comments
Closed

Configurable behavior on bad model reference #31

CPonty opened this issue Dec 7, 2015 · 0 comments

Comments

@CPonty
Copy link
Owner

CPonty commented Dec 7, 2015

Users of the library should be able to configure what happens when a placeholder contains an invalid reference to a path in the model.

Options (enum):

  • Throw specific exception
  • Ignore the Match
  • Remove the Match

Consider making a TemplConfiguration object they can pass in at runtime.

Whatever the user selects will have to be available to the Module handlers at runtime.

CPonty added a commit that referenced this issue Dec 8, 2015
…document template.

Options are, the module handler either throws an exception, ignores the match it's processing, or removes the match. Default is exception.
@CPonty CPonty closed this as completed Dec 8, 2015
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

No branches or pull requests

1 participant