Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
fabien-marty committed Jan 14, 2024
1 parent c49199c commit 653ffba
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<-- *** GENERATED FILE - DO NOT EDIT *** -->
<-- To modify this file, edit README.md.template and launch 'make doc' -->
<!-- *** GENERATED FILE - DO NOT EDIT *** -->
<!-- To modify this file, edit README.md.template and launch 'make doc' -->

# jinja-tree

Expand Down
2 changes: 1 addition & 1 deletion README.md.template
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{JINJA_TREE_MARKDOWN_HTML_GENERATED_COMMENT}}
{{JINJA_TREE_STYLE1_GENERATED_COMMENT}}

# jinja-tree

Expand Down
8 changes: 4 additions & 4 deletions jinja_tree/app/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@ def add_extra_keys_to_context(
comment_line2 = make_generated_comment(
self.comment_line2_template, **make_generated_comment_kwargs
)
context["JINJA_TREE_MARKDOWN_HTML_GENERATED_COMMENT"] = "\n".join(
[f"<-- {x} -->" for x in (comment_line1, comment_line2) if x]
context["JINJA_TREE_STYLE1_GENERATED_COMMENT"] = "\n".join(
[f"<!-- {x} -->" for x in (comment_line1, comment_line2) if x]
)
context["JINJA_TREE_MARKDOWN_PYTHON_GENERATED_COMMENT"] = "\n".join(
context["JINJA_TREE_STYLE2_GENERATED_COMMENT"] = "\n".join(
[f"# {x}" for x in (comment_line1, comment_line2) if x]
)
context["JINJA_TREE_MARKDOWN_GO_GENERATED_COMMENT"] = "\n".join(
context["JINJA_TREE_STYLE3_GENERATED_COMMENT"] = "\n".join(
[f"// {x}" for x in (comment_line1, comment_line2) if x]
)

Expand Down

0 comments on commit 653ffba

Please sign in to comment.