add new `erlydtl_library` behaviour for loading filters and tags #137

kaos opened this Issue Feb 27, 2014 · 0 comments


None yet
1 participant

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

Add erlydtl_library behaviour with accompanying options (fixes #137)
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 Feb 28, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment