Bevel.Templates 0.3.0

dotnet new install Bevel.Templates@0.3.0
                    
This package contains a .NET Template Package you can call from the shell/command line.

Bevel

Bevel

Bevel adds static pages to your ASP.NET Core app. You write pages as Razor components and keep your content in files under Data/: Markdown, JSON, YAML, XML, or C# loaders. Bevel reads those files at build time and turns them into typed C# data. While you develop, the app renders pages live. When you are ready, one command writes plain HTML files you can host anywhere.

Diagram: files under Data/ go through a build-time data step into a typed ISiteData. Razor pages mapped with MapStatic read it and render live while developing or as static files on export.

Install

You need the .NET 10 SDK or later and an ASP.NET Core project that uses Microsoft.NET.Sdk.Web.

dotnet add package Bevel

Bevel is pre-1.0, so APIs can change between minor versions. Read the changelog before you upgrade.

Quickstart

dotnet new install Bevel.Templates
dotnet new bevel -n MySite            # or: dotnet new bevel-blog -n MyBlog
cd MySite
dotnet watch                          # live pages while you edit
dotnet run -c Release -- --bevel-build   # static export into wwwroot/

Export with -c Release. A Debug build keeps drafts.

Read the docs

The docs live at https://khalidabuhakmeh.github.io/bevel/.

  • Get started: install, quickstart and a step-by-step tutorial.
  • Content: datasets, Markdown, custom formats, groups, references and processors.
  • Pages: routing, paging, links, images, RSS and sitemaps.
  • Deploy: export, sub-paths, GitHub Pages and other hosts.
  • Recipes: a blog, tags and archives, a docs site, a search index.
  • Reference: options, attributes, MSBuild properties and every BEVELnnn diagnostic.
  • Help: FAQ, troubleshooting, performance and the changelog.

Features

  • Typed data from Markdown, JSON, YAML, XML or your own loaders, checked at build time.
  • References between datasets, groups, [Unique] values and processors.
  • Razor pages mapped with MapStatic: one page per item, paging, RSS and sitemaps.
  • Atomic static export with a path base for sub-path hosting.
  • Clear BEVELnnn errors, each with a help link.

Contributing

dotnet build Bevel.slnx
dotnet test Bevel.slnx
./eng/smoke-test.sh      # packs Bevel and installs it into a fresh app

Source is in src/Bevel (runtime and MSBuild targets) and src/Bevel.Prebuild (the build-time data step). Tests are in tests/Bevel.Tests.

Releasing

See RELEASING.md.

License

MIT. See LICENSE.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.3.0 0 11/29/2026
0.2.0 47 11/29/2026