toddams / RazorLight

Template engine based on Microsoft's Razor parsing engine for .NET Core
Apache License 2.0
1.5k stars 259 forks source link

Create WPF net472 demo with CefSharp #381

Open jzabroski opened 3 years ago

jzabroski commented 3 years ago

Is your feature request related to a problem? Please describe. We could use examples of how to use RazorLight against various TFMs, including net472. One question of how to do this is where does the output of the HTML get sent to. CefSharp provides a flexible medium for displaying HTML.

Describe the solution you'd like Implement Example Hello, World app using CefSharp.Wpf nuget package.

See: https://www.nuget.org/packages/CefSharp.Wpf/85.3.121-pre

Ideally, a full Example app would have things like radio buttons to toggle various modes of using RazorLight, such as "file system project", "embedded resources project", string templates bypassing project system, "use (template) caching", etc.

A screen capture of the app could then be uploaded to YouTube to demonstrate to users how to use RazorLight well.

Additional context CC @HamiltonManalo

jzabroski commented 3 years ago

Also, add a PDF Viewer with ability to save HTML as PDF: https://github.com/LanderVe/WPF_PDFDocument

Avalonia also has a Html Renderer component: https://www.nuget.org/packages/Avalonia.HtmlRenderer/ but it hasn't been maintained: https://github.com/AvaloniaUI/Avalonia.HtmlRenderer