Skip to content
Library to load embedded content files (js and css) from Blazor libraries in server-side Blazor mode.
Branch: master
Clone or download
Latest commit 02f5b04 Apr 30, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src fix package definitions Apr 30, 2019
.gitignore
LICENSE Initial commit Apr 30, 2019
README.md Added nuget information Apr 30, 2019

README.md

EmbeddedBlazorContent

NuGet Gitter GitHub Stars GitHub Issues MIT Donate

This library helps you in server Blazor mode to enable content files from BlazorLib projects. In my opinion at this moment it is the perfomance and convenient way use embedded content files from Blazor Libraries.

Usage

  • Install latest version from nuget: NuGet

  • Enable Host return static content from embedded resources.

# Startup.cs
app.UseEmbeddedBlazorContent(assembly);

// or with custom requestPath

app.UseEmbeddedBlazorContent(assembly, "/staticContent");
  • Include links to static content in page
# _Host.cshtml
@Html.EmbeddedBlazorContent(assembly)

// or with custom requestPath

@Html.EmbeddedBlazorContent(assembly, "/staticContent")

// or all embedded content from all hosted asemblies

@Html.EmbeddedBlazorContent()

Examples

  • EmbeddedBlazorContent.ExampleApp
  • EmbeddedBlazorContent.ExampleLib

License

MIT

You can’t perform that action at this time.