A drop in replacement for the Razor view engine using pug
C# HTML JavaScript CSS
Latest commit 978cca6 Nov 24, 2016 @dpaquette dpaquette committed on GitHub Merge pull request #18 from AspNetMonsters/tests
Adding some sparse tests.
Failed to load latest commit information.
src/pugzor.core Adding some sparse tests. Nov 24, 2016
test Adding some sparse tests. Nov 24, 2016
.gitignore Fixing merge Nov 10, 2016
LICENSE Initial commit Nov 8, 2016
Readme.md Create Readme.md Nov 22, 2016
global.json WIP Nov 10, 2016
pugzor.sln Adding some sparse tests. Nov 24, 2016


Pugor is the Pug view engine for ASP.NET Core. You might know pug by its previous name, Jade. You can read more about Pug over at their website: https://pugjs.org/api/getting-started.html

Pugzor works by passing your models directly to the node version of pug via Steve Sanderson's glorious JavaScript services. It is actually pretty performant and there are many optimizations still to be made. To use Pugzor you'll need to follow these easy steps

  1. Install the pugzor package from nuget

    install-package pugzor
  2. Hook into pugzor in your setup.cs

      public void ConfigureServices(IServiceCollection services)
            // Add framework services.

You can now add .pug files directly to your views directory along side the razor files. The model is available in your pug view directly, the view data and model state are attached as properties to the pug model.

If your model looked like

      "FirstName": "bill"

and your view state like

     "Countries" : [ "Canada",...]

The result would be

      "FirstName": "bill",
      "ViewState": {
            "Countries" : [ "Canada",...]


Is this a joke?

It started off as one but it kind of worked okay so we rolled with it.

Could I use it in production

Sure. I mean it is your production site do whatever you want. If you have a bunch of pug views already then this could help you transition to using an ASP.NET Core back end with little difficulty. I don't know that I'd start a whole new site off using it.

What's the license?


Did anybody actually ask these questions?

No, We're just guessing at what people would ask. Thanks for reminding us how inconsiquential we are.