Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

RedHttp/Red.HandlebarsRenderer

Repository files navigation

The RedHttp project is no longer maintained. See Carter for a similar low-ceremony experience.

Handlebars template renderer extension for RedHttpServer

Handlebars renderer extension for RedHttpServer using Handlebars.Net

GitHub Nuget Nuget Dependent repos (via libraries.io)

Usage

After installing and referencing this library, the Red.Response has the extension method RenderTemplate(filePath, renderParams, ..)

RenderTemplate(filePath, renderParams, ..) takes the path of a Handlebars template file and sends the html, rendered using the render parameter object, as response.