-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sendHtml callback #10
Comments
Sounds like a fairly simple thing to implement, but I'm curious of your use case – why do you need this? |
In this case I want to be able to inject som variables from |
I would suggest to have a |
Yes, the naming etc are not important to me. I just want to be able to perform something similar to what the injectLiveReload does, but via options. |
Any update on this? Do you want me to submit a PR? |
After thinking some time on this I'm not quite sure I understand exactly what you were after? Do you want it work kind of the same as my suggestion but with another name or do you want a different kind of functionality? If you want a different kind of functionality, what would be your case or goal? It would also clarify if you could provide a simple code example so I can compare to my suggestion? To clarify my case: <body>
...
<my-component setting="{SOME_ENV_VAR}"></my-component>
</body> Side note: I have also been using the proposed PR in my project for a while now and it works great for my case. |
It would be great if the was a possibility to provide a callback function that gets called right after the injectLiveReload in sendHtml(). That way it would be possible to modify static files dynamically.
Maybe it would be useful to also get the res and status in the callback function?
The text was updated successfully, but these errors were encountered: