[badges.maintenance]
status = "actively-developed"
[[bench]]
harness = false
name = "bench"
path = "benches/bench.rs"
[[bin]]
name = "handlebars-cli"
path = "src/cli.rs"
[dependencies.heck]
optional = true
version = "0.5"
[dependencies.log]
version = "0.4.0"
[dependencies.num-order]
version = "1.2.0"
[dependencies.pest]
version = "2.1.0"
[dependencies.pest_derive]
version = "2.1.0"
[dependencies.rhai]
features = ["sync", "serde"]
optional = true
version = "1.16.1"
[dependencies.rust-embed]
features = ["include-exclude"]
optional = true
version = "8.0.0"
[dependencies.serde]
version = "1.0.0"
[dependencies.serde_json]
version = "1.0.39"
[dependencies.thiserror]
version = "1"
[dependencies.walkdir]
optional = true
version = "2.2.3"
[dev-dependencies.criterion]
version = "0.5"
[dev-dependencies.env_logger]
version = "0.11"
[dev-dependencies.serde_derive]
version = "1.0.75"
[dev-dependencies.tempfile]
version = "3.0.0"
[dev-dependencies.time]
features = ["serde", "formatting", "parsing"]
version = "0.3.7"
[dev-dependencies.tiny_http]
version = "0.12"
[[example]]
name = "block_helper_macro_let"
path = "examples/block_helper_macro_let.rs"
[[example]]
name = "decorator"
path = "examples/decorator.rs"
[[example]]
name = "dev_mode"
path = "examples/dev_mode.rs"
[[example]]
name = "error"
path = "examples/error.rs"
[[example]]
name = "helper_macro"
path = "examples/helper_macro.rs"
[[example]]
name = "partials"
path = "examples/partials.rs"
[[example]]
name = "quick"
path = "examples/quick.rs"
[[example]]
name = "render"
path = "examples/render.rs"
[[example]]
name = "render_file"
path = "examples/render_file.rs"
[[example]]
name = "script"
path = "examples/script.rs"
required-features = ["script_helper"]
[features]
default = []
dir_source = ["walkdir"]
no_logging = []
script_helper = ["rhai"]
string_helpers = ["heck"]
[lib]
name = "handlebars"
path = "src/lib.rs"
[package]
authors = ["Ning Sun <sunng@pm.me>"]
autobenches = false
autobins = false
autoexamples = false
autotests = false
build = false
categories = ["template-engine", "web-programming"]
description = "Handlebars templating implemented in Rust."
documentation = "https://docs.rs/crate/handlebars/"
edition = "2021"
homepage = "https://github.com/sunng87/handlebars-rust"
keywords = ["handlebars", "templating", "web"]
license = "MIT"
name = "handlebars"
readme = "README.md"
repository = "https://github.com/sunng87/handlebars-rust"
rust-version = "1.72"
version = "6.2.0"
[package.metadata.docs.rs]
features = ["dir_source", "script_helper", "rust-embed"]
rustdoc-args = ["--cfg", "docsrs"]
[target."cfg(unix)".dev-dependencies.pprof]
features = ["flamegraph", "prost-codec"]
version = "0.13"
[[test]]
name = "block_context"
path = "tests/block_context.rs"
[[test]]
name = "data_helper"
path = "tests/data_helper.rs"
[[test]]
name = "embed"
path = "tests/embed.rs"
[[test]]
name = "escape"
path = "tests/escape.rs"
[[test]]
name = "helper_function_lifetime"
path = "tests/helper_function_lifetime.rs"
[[test]]
name = "helper_macro"
path = "tests/helper_macro.rs"
[[test]]
name = "helper_with_space"
path = "tests/helper_with_space.rs"
[[test]]
name = "root_var"
path = "tests/root_var.rs"
[[test]]
name = "subexpression"
path = "tests/subexpression.rs"
[[test]]
name = "template_names"
path = "tests/template_names.rs"
[[test]]
name = "whitespace"
path = "tests/whitespace.rs"