Pugnet is a modern Pug view engine for ASP.NET Core, forked from Pugzor. It is updated for .NET 8 and using Jering's Javascript.NodeJS
.
Learn more about Pug at pugjs.org.
Install-Package Pugnet
In your Program.cs
:
services.AddControllersWithViews()
.AddPug();
Place your .pug
files in the Views
directory.
Model:
public class Model
{
public string FirstName { get; set; } = "John";
}
Pug Template:
p #{FirstName}
Apache 2.0 License. See LICENSE.
Contributions and issues are welcome!