Our great sponsors
-
Razor.Templating.Core
Razor Templating Engine to render Razor Views(.cshtml files) to String in Console, Web, Service, Desktop workloads in .NET Core 3+
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
PreMailer.Net
C# library that moves your stylesheets to inline style attributes, for maximum compatibility with E-mail clients.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
I am using RazorTemplating . Can you tell me what are the differences? Also, that lib had some issues with memory (have a look at closed issues) - did you have similar issues?
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.
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.
CSS classes can be used in the generated code but CSS support in rendered HTML emails is very patchy and inconsistent. You should use a tool like PreMailer.NET to inline the CSS.
Related posts
- Reporting group membership for critical Active Directory groups
- Introducing TopazView: A Lightweight and Powerful View Engine
- Sending HTML based emails. Is there an easier way to dynamically generate the document?
- Preview rendered .cshtml with the same style restrictions that email clients use
- Email template engine