Python parity bug(?): Comma-delimited expression
まだ誰も着手していません。
評価
調査の方向性
まず、issue のテンプレートを jinja2cpp と Python Jinja2 で再現し、続いてカンマ区切りの式に関するリンク先の Jinja template ドキュメントを読んでください。意図された構文を確定し、合意したパリティ動作を文書化または実装し、報告されたテンプレートの回帰テストを追加できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
The following template compiles with Python jinja2 (and yields an output of "1"), but does not work with jinja2cpp.
{% if 0, 'foo' != 'bar' %}
1
{% endif %}
Here's the jinja2cpp error that I get.
LOAD ERROR: noname.j2tpl:2:8: error: Expected end of statement, got: ','
{% if 0, 'foo' != 'bar' %}
---^-------
I'm actually not entirely sure what this expression is supposed to mean, or if it is just incidentally supported due to the Python jinja2 implementation.
I was not able to find an explicit call out for what this would mean in the documentation, and I wasn't able to discern how this might be useful from mucking around experimentally with a variety of values.
https://jinja.palletsprojects.com/en/2.10.x/templates/
So unclear if it would make sense to fix in jinja2cpp for parity, or if Python jinja2 should be fixed to not support this "bad template syntax".
- 主要言語
- C++
- スター
- 602
- フォーク
- 115
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
jinja2cpp/Jinja2Cpp のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 65/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 74/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 70/100
jinja2cpp/Jinja2Cpp の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
cp-algorithms/cp-algorithms#1715 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Icinga/icinga2#11058 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
status:needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
PX4/PX4-Autopilot#28924 ·
メンテナーはふだん 1 日以内に返信
-
component: split-view platform: windows
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
zen-browser/desktop#15616 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信