Skip to content

Latest commit

 

History

History
57 lines (36 loc) · 853 Bytes

Readme.md

File metadata and controls

57 lines (36 loc) · 853 Bytes

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!