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

FreeMarkerEngine configurability #445

Open
yinan-symphony opened this issue Feb 16, 2021 · 0 comments
Open

FreeMarkerEngine configurability #445

yinan-symphony opened this issue Feb 16, 2021 · 0 comments
Labels
[type] enhancement New feature or request

Comments

@yinan-symphony
Copy link
Contributor

yinan-symphony commented Feb 16, 2021

Feature Request

As BDK FreeMarker template user, i'd like to be able to configure a multiple template loader, the loader path is configurable(filepath or classpath), so that the templates files are going to be loaded from these paths, and will be override according to the loader's order. I'd like also be able to configure the freemarker configurations such like cache and template update delay.

Description of Problem:

FreeMarkerEngine from BDK2.0 has a private createConfiguration() method, so that cannot be override to have a custom configuration, in addition, each call newTemplateFromFile, or newTemplateFromClasspath will create a new configuration on the fly, this won't profit the template caching from Freemarker, hence we will have a bit performance impact.

Potential Solutions:

.To see if this is something we'd like to do in BDK, otherwise we already have an custom implementation of FreeMarkerEngine to satisfy our requirement.

... if you've considered alternatives, clearly and concisely describe those too.

@thibauult thibauult added the [type] enhancement New feature or request label Feb 19, 2021
@thibauult thibauult added this to the 2.2.0 milestone Feb 19, 2021
@thibauult thibauult modified the milestones: 2.4.x, General Backlog Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[type] enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants