freemarker 0.1.1

Apache FreeMarker 语义兼容的 Rust 模板引擎(freemarker-core 迁移)
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! 通用运行时异常 —— 对应 Java `freemarker.core.MiscTemplateException`
//! (_MiscTemplateException 的公开包装;Rust 侧与内部版共用 `TemplateError::Misc`,
//! 构造见 _misc_template_exception.rs)

use crate::error::TemplateError;

/// Java `MiscTemplateException(Environment, String)` 的 Rust 入口
#[allow(dead_code)]
pub(crate) fn new(message: impl Into<String>) -> TemplateError {
    crate::core::_misc_template_exception::new(message)
}