Skip to content

Hooks on the data structure/event before/after event_from_yaml #44

@rkdarst

Description

@rkdarst

I'd be interested in a way to run hooks on the event_yaml (= loaded data structures) and event at the start/end of event_from_yaml. Would you like that feature here, and if so, do you have any suggestions for implementing it? If you would like it, I can try an initial implementation (the only major problem is "how to pass arguments into there - do we carry around hooks between all the functions, or make something global?").

My alternative option is to monkey-patch hooks in, but something clean+supported would be better... if we can find it.

(in this case, I would like to have a way to have a description_suffix that would be appended to the description. This would make template events with &label and <<: *label) cleaner... but I expect that hooks would be better than making yaml2ics too specific to my needs...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions