-
Notifications
You must be signed in to change notification settings - Fork 29
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
Feature Request: Loading content from EmbeddedResource in the assembly #31
Comments
Hi, I've got this somewhat implemented for my purposes, so if you still need it, I could share it or make a PR (seems like I am in the contributing mood lately 😁). There is a single drawback, though. Embedded files must be flattened, meaning that all JS/CSS/images must be in the same directory as index.html. It's fine by me, but it should be somehow possible to configure it to accept any folder structure. |
I'm glad you implemented this feature. Would you mind sharing it? |
It's super similar to the HostedContent class (and could be improved by making an abstract class or merging Hosted and Embedded classes together). Project file (.csproj) edits:
Content Provider:
How to use it with Webview:
|
Do we have plans to support loading content from EmbeddedResource in the assembly?
like this https://github.com/JBildstein/SpiderEye/blob/master/Source/SpiderEye.Core/Content/EmbeddedContentProvider.cs
The text was updated successfully, but these errors were encountered: