This repository has been archived on 2023-02-02. You can view files and clone it, but cannot push or open issues or pull requests.
mfgames-nitride-cil/src/MfGames.Nitride.Handlebars
D. Moonfire 2892ec3445
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/tag/woodpecker Pipeline was successful Details
feat!: added cancellation token support to pipelines and operations
2023-01-17 19:24:09 -06:00
..
Configuration feat: made PipelineBase.AddDependency be a params 2023-01-15 12:20:41 -06:00
ApplyStyleTemplate.cs feat!: added cancellation token support to pipelines and operations 2023-01-17 19:24:09 -06:00
ApplyStyleTemplateValidator.cs refactor: renaming namespaces 2022-09-06 00:53:22 -05:00
HandlebarsTemplateCache.cs refactor!: fixed missed namespaces 2023-01-14 18:19:42 -06:00
HasHandlebarsTemplate.cs refactor: renaming namespaces 2022-09-06 00:53:22 -05:00
IdentifyHandlebarsFromComponent.cs feat!: added cancellation token support to pipelines and operations 2023-01-17 19:24:09 -06:00
IdentifyHandlebarsFromComponentValidator.cs refactor!: fixed missed namespaces 2023-01-14 18:19:42 -06:00
IdentifyHandlebarsFromContent.cs feat!: added cancellation token support to pipelines and operations 2023-01-17 19:24:09 -06:00
MfGames.Nitride.Handlebars.csproj feat!: added cancellation token support to pipelines and operations 2023-01-17 19:24:09 -06:00
NitrideHandlebarsBuilderExtensions.cs refactor!: fixed missed namespaces 2023-01-14 18:19:42 -06:00
NitrideHandlebarsModule.cs refactor!: fixed missed namespaces 2023-01-14 18:19:42 -06:00
README.md feat!: renaming files and projects 2022-09-06 00:40:00 -05:00
RenderContentTemplate.cs feat!: added cancellation token support to pipelines and operations 2023-01-17 19:24:09 -06:00
RenderContentTemplateValidator.cs refactor!: fixed missed namespaces 2023-01-14 18:19:42 -06:00

README.md

Nitride.Handlebars

This is a collection of Handlebars operations that work with Nitride. There are two ways of using Handelbars in this package.

IHandlebars

This library does not configure or register IHandlebars but requires it to be injected into the DI container (Autofac) along with any templates or inlines loaded.

Styling Templates

The first is to use it to apply a Handlebars theme to a page or text content. This would include adding links to the CSS, any javascript, generating menus, and common navigation elements.

Content Templates

The second is used to apply it to the Handlebars inside the text content. This is the page-specific content that needs to be resolved. A good example of this might be creating a "last five posts" page or embedding some metadata from the YAML header into the page.