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 new erlydtl_library behaviour for loading filters and tags #137

Closed
kaos opened this issue Feb 27, 2014 · 0 comments
Closed

add new erlydtl_library behaviour for loading filters and tags #137

kaos opened this issue Feb 27, 2014 · 0 comments
Assignees
Milestone

Comments

@kaos
Copy link
Member

kaos commented Feb 27, 2014

(this issue supercedes issue #135)

To support #100 we'll add a library behaviour that will provide means to find filters and tags from modules.

A new option will also be introduced, default_libraries :: [Library|Module] that lists any default libraries that should be loaded prior to compiling any templates and are thus a default set of tags and filters always available in all templates (for the current compile invocation, naturally).

The library's module name is first looked up from the list of known libraries (from the new libraries option, added in #100 ), and if not found, it is assumed the name refers to a erlang module directly.

@kaos kaos added this to the 0.9.1 milestone Feb 27, 2014
@kaos kaos added tags labels Feb 27, 2014
@kaos kaos self-assigned this Feb 27, 2014
kaos added a commit that referenced this issue Feb 27, 2014
New options are libraries and default_libraries.
Deprecated but still supported options are custom_filters_modules
and custom_tags_modules.

Note, that the built in filters are still in the old format,
not yet migrated to the new library behaviour.
@kaos kaos added the fixed label Feb 27, 2014
@kaos kaos closed this as completed Feb 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant