Oxpecker.ViewEngine 0.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Oxpecker.ViewEngine --version 0.1.0                
NuGet\Install-Package Oxpecker.ViewEngine -Version 0.1.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Oxpecker.ViewEngine" Version="0.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Oxpecker.ViewEngine --version 0.1.0                
#r "nuget: Oxpecker.ViewEngine, 0.1.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Oxpecker.ViewEngine as a Cake Addin
#addin nuget:?package=Oxpecker.ViewEngine&version=0.1.0

// Install Oxpecker.ViewEngine as a Cake Tool
#tool nuget:?package=Oxpecker.ViewEngine&version=0.1.0                

Oxpecker

Nuget package

Oxpecker is a functional wrapper around ASP.NET Core Endpoint routing (sometimes called Minimal API).

This library is basically a revised version of Giraffe, it mostly sticks to it's successful API (hence the name). Improvements involve changing some core types, performance of template handlers, simplifying handlers and dropping a lot of outdated functionality.

Features:

  • Native ASP.NET Core Endpoint routing integration
  • ViewEngine with convenient DSL for HTML
  • Strongly typed route parameters
  • Endpoint handlers and endpoint middlewares, flexible composition
  • JSON binding and serialization
  • Form binding
  • URL parameters binding
  • Response caching
  • Streaming
  • Authorization
  • eTag support
  • Many useful HttpContext extensions

Documentation:

TBD, for now you can use Giraffe documentation, with the following differences:

  • routef parameters should be surrounded with curly braces {}, this allows using Route constraints
  • routef handler arguments are now curried, not tuplified
  • HttpHandler concept is separated into EndpointHandler and EndpointMiddlware. The difference is that the former doesn't accept next parameter, while the latter does.
  • Case insensitive functions (*Ci) are dropped, since everything is case insensitive by default
  • Some other route functions are dropped
  • JSON.ISerializer only requires one method implemented
  • Model binding will throw exceptions to be caught in common middleware (see examples/Basic)
  • .NET 8 minimal target
  • CE-based strongly typed ViewEngine built on class inheritance
  • Oxpecker project is planned to be moved to fsprojects organization once it reaches 200 stars, expect high quality of maintenance
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Oxpecker.ViewEngine:

Package Downloads
Oxpecker

F# web framework built on top of ASP.NET Core

Oxpecker.Htmx

HTMX support for Oxpecker.ViewEngine

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.15.2 137 11/6/2024
0.15.1 368 10/26/2024
0.15.0 128 10/9/2024
0.14.1 80 10/8/2024
0.14.0 398 8/30/2024
0.13.1 1,580 8/23/2024
0.13.0 146 8/22/2024
0.12.0 458 8/13/2024
0.11.0 80 8/5/2024
0.10.2 163 7/24/2024
0.10.1 98 7/23/2024
0.10.0 302 7/17/2024
0.9.0 118 7/16/2024
0.8.0 109 6/18/2024
0.7.2 1,127 5/8/2024
0.7.1 124 4/29/2024
0.7.0 811 3/5/2024
0.6.0 128 3/3/2024
0.5.0 223 2/29/2024
0.4.0 150 2/21/2024
0.3.0 121 2/15/2024
0.2.0 285 1/24/2024
0.1.0 141 1/19/2024

Initial release