BlazorTemplater
RazorEngine
BlazorTemplater | RazorEngine | |
---|---|---|
5 | 4 | |
140 | 2,114 | |
- | - | |
0.0 | 0.0 | |
over 1 year ago | almost 3 years ago | |
C# | C# | |
Apache License 2.0 | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
BlazorTemplater
-
Render blazor component into PDF? And the solution I came up with.
You may want to look at my https://github.com/conficient/blazortemplater - you can use .razor components to generate the HTML. You can also specify a layout component to act as your “masterpage “
-
QuestPDF 2021.11 - a new version of the open-source, MIT-licensed, C# library for generating PDF documents with fluent API, now with several community-driven improvements 🎉 Please help me make it popular 🚀
If you don't care about making it client side, as an alternative you can use something like https://github.com/conficient/BlazorTemplater to load your existing Blazor code in the backend, then send the output to https://playwright.dev/ - which will produce a PDF file. This way you can also have an HTML preview of the PDF, the PDF itself.
-
BlazorTemplater now supports Layouts !
Just been implementing Layout support on my HTML rendering package BlazorTemplater
- New library: BlazorTemplater
RazorEngine
-
C# Library for Go template
There's a load of packages to do it for example https://github.com/Antaris/RazorEngine
-
How to generate PDF and HTML in 2023?
For HTML, you can use Razor from ASP.NET, either by making a web application you call with the data to get backthe page (microservice approach) or by shoving the Razor engine into your current application and rendering to strings.
- Rendering HTML (C# windows forms) not working after deploy
-
New library: BlazorTemplater
Sorry! I only realised the need on Monday when my .NET Standard Library that contains .cshtml templates broke when I added .razor support. I use RazorLight and used to use RazorEngine before that.
What are some alternatives?
SkiaSharp - SkiaSharp is a cross-platform 2D graphics API for .NET platforms based on Google's Skia Graphics Library. It provides a comprehensive 2D API that can be used across mobile, server and desktop models to render images.
RazorLight - Template engine based on Microsoft's Razor parsing engine for .NET Core
PreMailer.Net - C# library that moves your stylesheets to inline style attributes, for maximum compatibility with E-mail clients.
scriban - A fast, powerful, safe and lightweight scripting language and engine for .NET
QuestPDF-Documentation
DotLiquid - .NET Port of Tobias Lütke's Liquid template language.
iTextSharp.LGPLv2.Core - iTextSharp.LGPLv2.Core is an unofficial port of the last LGPL version of the iTextSharp (V4.1.6) to .NET Core
SmartFormat.NET - A lightweight text templating library written in C# which can be a drop-in replacement for string.Format
Razor.Templating.Core - Razor Templating Engine to render Razor Views(.cshtml files) to String in Console, Web, Service, Desktop workloads in .NET Core 3+
Handlebars.Net - A real .NET Handlebars engine
Playwright - Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
Mustache Sharp - An extension of the mustache text template engine for .NET.