GithubHelp home page GithubHelp logo

ykankaya / embeddedblazorcontent Goto Github PK

View Code? Open in Web Editor NEW

This project forked from samprof/embeddedblazorcontent

0.0 1.0 0.0 248 KB

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

License: MIT License

C# 60.34% HTML 26.08% CSS 12.43% JavaScript 1.14%

embeddedblazorcontent's Introduction

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

embeddedblazorcontent's People

Contributors

samprof avatar sepppenner avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.