Geeks-Solutions / nuxt-sections

MIT License
2 stars 1 forks source link

Lambda functions #88

Open jfayad opened 2 weeks ago

jfayad commented 2 weeks ago

The idea behind lambda functions is to enable host projects to implement them in order to alter the behavior of the page/sections rendering to enable additional customizations.

The following won't read the return

These will be events emitted by the library

The following will read the return and use it

The following will require a specific component to be implemented in the host project:

...
// non return hook
event_call("page_pre_render", data);
rendering_call(data);

// return hook
new_payload = lambda_call("page_pre_load", payload);

API.post("url", new_payload){}
akramsarkis commented 1 week ago

@jfayad what are the acceptance testing ? To be honest the issue is not clear for me , the whole issue

mahfouzhseineweev commented 1 week ago

Estimated: 1.5h