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

Allow override core operators #456

Merged
merged 1 commit into from
Aug 8, 2019

Conversation

cnogueira
Copy link
Contributor

Resolves #455.

Added allowOverrideCoreOperators flag to PebbleEngine.Builder. It defaults to false to preserve backwards compatibility.

Example usage:

    PebbleEngine pebble = new PebbleEngine.Builder()
        .loader(new StringLoader())
        .extension(new TestExtension())
        .allowOverrideCoreOperators(true)
        .build();

If enabled, it will apply all operators defined in provided extension class.
Otherwise it will only apply those operators that are not already defined in CoreExtension.class operators.

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.

Allow override core operators
2 participants