fluent-template-helper 0.2.0

Template engine helpers for the Fluent internationalization framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[cfg(feature = "handlebars")]
mod handlebars;
#[cfg(feature = "tera")]
mod tera;

/// The helper type that implements `handlebars::HelperDef` with the
/// `handlebars` feature and `tera::Function` with the `tera` feature.
#[allow(dead_code)]
pub struct FluentHelperFunction<L> {
    loader: L,
}

impl<L> FluentHelperFunction<L> {
    pub fn new(loader: L) -> Self {
        Self { loader }
    }
}