-
Jinja2 support line comment, does minijinja will support it? |
Beta Was this translation helpful? Give feedback.
Answered by
mitsuhiko
Aug 19, 2024
Replies: 1 comment 3 replies
-
Yes, if you enable the use minijinja::{context, syntax::SyntaxConfig, Environment};
let mut env = Environment::new();
env.set_syntax(
SyntaxConfig::builder()
.line_statement_prefix("#")
.line_comment_prefix("##")
.build()
.unwrap(),
); |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
mitsuhiko
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, if you enable the
custom_syntax
feature you can configure line comments: