Right now, module hooks are a fragile system. They do not have an easy-to-use interface (see documentation on AddToModuleHook) and provide no type safety.
I think we should look at module hooks and consider revamping them before the 1.0 release of this project. Ideally we would offer the following:
Strongly defined input format (e.g., using JSON Schema)
Good examples/documentation on how they work and what they intend to solve (they should be used sparingly!)
Revamp stencil.AddToModuleHook to be better aware of where inserts come from and not require being wrapped in an array (that was a weird requirement to begin with)
Right now, module hooks are a fragile system. They do not have an easy-to-use interface (see documentation on
AddToModuleHook
) and provide no type safety.I think we should look at module hooks and consider revamping them before the 1.0 release of this project. Ideally we would offer the following:
stencil.AddToModuleHook
to be better aware of where inserts come from and not require being wrapped in an array (that was a weird requirement to begin with)