🔥 A totally copacetic, easy-to-use front-end Blazor WordPress Rendering Blog package. This front-end Razor Class Library is intended to be used by Blazor WASM projects, and targets .NET 5. It easily allows you to render your WordPress Blogs.
BlazingApples is an open-source set of packages that aims to speed application development for Blazor WebAssembly organizations.
⚡ Check out the demo site here, or this blog post on how the components work!
👏 Special thanks to wp-Net for creating the WordPressPCL API service on which this library primarily consumes.
- On Client Project, right click and get to the NuGet Package Manager ("Manage NuGetPackages").
- Install
WordPressPCL
. This provides the client service to request data from your site. - Add the following to
Program.cs's Main
:
builder.Services.AddScoped(pcl => new WordPressClient("https://old.taylorchasewhite.com/wp-json/"));
- Install
BlazingApple.Blog
. This provides the client components to render the requested data.
Now you should be all set to use the components!
Once the setup is complete, using the components is straightforward:
- In a component, inject the WordPressPCL client,
@inject WordPressPCL.WordPressClient client
. - Add the
<Blog Client="client"></Blog>
component to render all the posts in your blog.
- Build with love 💙, using WordPressPCL.