Skip to content

Commit ffc6e29

Browse files
committed
⬆️ upgrade to handlebars 6
1 parent 9dffe42 commit ffc6e29

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "handlebars_misc_helpers"
3-
version = "0.16.3"
3+
version = "0.17.0"
44
authors = ["David Bernard"]
55
edition = "2021"
66
description = "A collection of helpers for handlebars (rust) to manage string, json, yaml, toml, path, file, http request."
@@ -26,7 +26,7 @@ attohttpc = { version = "^0.28", optional = true, default-features = false, feat
2626
"tls-rustls-webpki-roots",
2727
] }
2828
enquote = { version = "^1.0", optional = true }
29-
handlebars = "^5.0"
29+
handlebars = "6"
3030
log = "^0.4"
3131
cruet = { version = "^0.14", optional = true }
3232
jmespath = { version = "^0.3", optional = true }
@@ -44,9 +44,9 @@ toml = { version = "^0.8", optional = true, features = ["preserve_order"] }
4444
uuid = { version = "^1.8", optional = true, features = ["v4", "v7"] }
4545

4646
[dev-dependencies]
47-
tempfile = "3.1"
48-
pretty_assertions = "1.1"
49-
similar-asserts = "1.4"
47+
tempfile = "3"
48+
pretty_assertions = "1"
49+
similar-asserts = "1"
5050
unindent = "0.2"
5151

5252
[features]

src/region_helpers.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,7 @@ mod tests {
100100
let mut hbs = new_hbs();
101101
hbs.register_template_string(
102102
"test",
103-
r#"{{#replace_section begin="<!-- #region head-->" end="<!-- #endregion head -->" content }}
104-
105-
This is the new content of the block
106-
{{/replace_section}}"#,
103+
r#"{{#replace_section begin="<!-- #region head-->" end="<!-- #endregion head -->" content }}This is the new content of the block{{/replace_section}}"#,
107104
)?;
108105

109106
let result = hbs.render("test", &data)?;
@@ -120,9 +117,7 @@ mod tests {
120117
<title>Document</title>
121118
</head>
122119
<body>
123-
<!-- #region head-->
124-
This is the new content of the block
125-
<!-- #endregion head -->
120+
<!-- #region head-->This is the new content of the block<!-- #endregion head -->
126121
</body>
127122
</html>
128123
"#,

0 commit comments

Comments
 (0)