Skip to content

An updated fork of Pugzor which is a drop in replacement for the Razor view engine using pug

License

Notifications You must be signed in to change notification settings

RespectMathias/Pugnet

 
 

Repository files navigation

Pugnet

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.


🔧 Installation

Install-Package Pugnet

🔨 Usage

In your Program.cs:

services.AddControllersWithViews()
        .AddPug();

Place your .pug files in the Views directory.

Accessing Model Properties

Model:

public class Model
{
    public string FirstName { get; set; } = "John";
}

Pug Template:

p #{FirstName}

📄 License

Apache 2.0 License. See LICENSE.


Contributions and issues are welcome!