mirror of
https://github.com/askama-rs/askama.git
synced 2025-09-28 05:21:14 +00:00
12 lines
324 B
Rust
12 lines
324 B
Rust
use askama::Template;
|
||
|
||
// Ensure that paths starting with `::` are supported correctly.
|
||
#[test]
|
||
fn test_path_starting_with_colon() {
|
||
#[derive(Template)]
|
||
#[template(source = r#"<EFBFBD><EFBFBD><EFBFBD>{{::std::format!("")}}<7D> <20>t<EFBFBD>"#, ext = "txt")]
|
||
struct X;
|
||
|
||
assert_eq!(X.render().unwrap(), "<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>t<EFBFBD>");
|
||
}
|