Skip to content

Question: any way to extend the library? #35

Description

@mirceaulinic

I'm very new to this library and the first question I have in mind (you may find it trivial): is there any flexible way to extend the list of features from https://github.com/mahmoud/ashes#compatibility?

More specifically, I am thinking about a way to inject external functions. If comfortable with the context, something similar to the Jinja filters. E.g.:

context.register_feature('virtual_name', feature_function_name)

And use the feature as virtual_name inside the template.

Is this currently possible or on the roadmap?

Thanks,
Mircea

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions