Skip to main content

Module hbs

Module hbs 

Source
Expand description

Handlebars template processing.

Re-exportsยง

use std::collections::HashMap; ๐Ÿ”’
use std::path::Path; ๐Ÿ”’
use anyhow::Error; ๐Ÿ”’
use handlebars::Context; ๐Ÿ”’
use handlebars::Decorator; ๐Ÿ”’
use handlebars::DirectorySourceOptions; ๐Ÿ”’
use handlebars::Handlebars; ๐Ÿ”’
use handlebars::Helper; ๐Ÿ”’
use handlebars::HelperDef; ๐Ÿ”’
use handlebars::HelperResult; ๐Ÿ”’
use handlebars::Output; ๐Ÿ”’
use handlebars::RenderContext; ๐Ÿ”’
use handlebars::RenderError; ๐Ÿ”’
use handlebars::RenderErrorReason; ๐Ÿ”’
use handlebars::Renderable; ๐Ÿ”’
use handlebars::handlebars_helper; ๐Ÿ”’
use crate::format::Formatter; ๐Ÿ”’

Structsยง

ManLinkHelper ๐Ÿ”’
Helper for {{man name section}} expression.
OptionHelper ๐Ÿ”’
Helper for {{#option}} block.
OptionsHelper ๐Ÿ”’
Helper for {{#options}} block.
lower

Functionsยง

expand
Processes the handlebars template at the given file.
in_options ๐Ÿ”’
Whether or not the context is currently inside a {{#options}} block.
remove_from_context ๐Ÿ”’
Removes a variable from the context.
set_decorator ๐Ÿ”’
{{*set var=value}} decorator.
set_in_context ๐Ÿ”’
Sets a variable to a value within the context.

Type Aliasesยง

FormatterRef ๐Ÿ”’