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/README.md

26 lines
882 B
Markdown
Raw Permalink Normal View History

# Nitride.Handlebars
2021-09-07 05:15:45 +00:00
This is a collection
of [Handlebars](https://github.com/Handlebars-Net/Handlebars.Net)
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
2021-09-07 05:15:45 +00:00
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.