Skip to content

Library to load embedded content files (js and css) from Blazor libraries in server-side Blazor mode.

License

Notifications You must be signed in to change notification settings

sebestyn168/EmbeddedBlazorContent

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

EmbeddedBlazorContent

NuGet Gitter GitHub Stars GitHub Issues MIT Donate

This library helps you with server side Blazor projects to enable content files from BlazorLib projects. In my opinion, it is the most perfomant and convenient way for using embedded content files from Blazor Libraries at this moment.

Usage

  • Install the latest version from nuget: NuGet

  • Enable host return static content from embedded resources.

# Startup.cs
app.UseEmbeddedBlazorContent(assembly);

// Or with custom request path

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

// Or with custom request path

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

// Or all embedded content from all hosted asemblies

@Html.EmbeddedBlazorContent()

Examples

  • EmbeddedBlazorContent.ExampleApp
  • EmbeddedBlazorContent.ExampleLib

License

MIT

News

EmbeddedBlazorContent 1.10.0

  • Updated to .NET Core 3.1 Preview 1

EmbeddedBlazorContent 1.9.0

  • Updated to .NET Core 3.0

EmbeddedBlazorContent 1.8.0

  • Updated to .NET Core 3.0 RC 1

EmbeddedBlazorContent 1.7.0

  • Updated to .NET Core 3.0 Preview 9

EmbeddedBlazorContent 1.4.0

  • .NET Core 3.0.0-preview8.19405.7

EmbeddedBlazorContent 1.3.0

  • .NET Core 3.0.0-preview7.19365.7

EmbeddedBlazorContent 1.2.0

  • .NET Core 3.0.100-preview6-012264

About

Library to load embedded content files (js and css) from Blazor libraries in server-side Blazor mode.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 60.4%
  • HTML 26.1%
  • CSS 12.4%
  • JavaScript 1.1%