feat: template-defined Liquid filters
まだ誰も着手していません。
評価
調査の方向性
Start by reading the FluidTemplateEngine constructor and AddFilter calls to understand how filters are registered, then inspect the xUnit tests in Fanstatic.Test/ and fixture sites in .TestSites/. Run ./build.sh test while developing. Done means a fixture site's filters/stars.liquid makes {{ 4 | stars }} render ★★★★☆, with the other listed behaviors covered by tests and the documentation examples added.
索引モデルが issue の本文から書いたものです。
説明
Part of the Phase 3 epic (#33).
Current State
Custom filters can only be added in C# (FluidTemplateEngine constructor, AddFilter calls). Sites cannot package
reusable logic.
Tasks:
- Every
filters/<name>.liquid(site, then theme) registers a filter<name> - In the filter template:
input,args(positional list) and named args, pluspageandsite - Result = trimmed rendered output (string); document that numbers come back as strings
- Name clash with a built-in filter: error at startup
- Docs page with examples (
slugify,stars)
Tests live in Fanstatic.Test/ (xUnit + NSubstitute); fixture sites in .TestSites/. Run ./build.sh test; new/changed methods need CRAP ≤ 15 and ≥ 75 % line coverage.
Acceptance Criteria:
{{ 4 | stars }}renders★★★★☆fromfilters/stars.liquidon a fixture site.
Related:
- #33 (Phase 3 epic, parent)
- 主要言語
- C#
- スター
- 1
- フォーク
- 0
- 平均マージ
- 10時間 23分
- マージ済み PR(30日)
- 4
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
MASS4ORG/Fanstatic のほかの issue
-
c:templates p:low size:S t:task
難易度 5/5 1週間以上 初心者へのやさしさ 45/100
-
c:content good first issue p:low size:S t:feature
難易度 4/5 3〜5日 初心者へのやさしさ 58/100
-
c:templates p:medium size:M t:feature
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
-
c:content p:medium size:L t:feature
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
-
c:templates p:high size:M t:feature
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
MASS4ORG/Fanstatic の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ClickHouse/clickhouse-cs#689 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 7 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
vchelaru/FlatRedBall2#1481 ·
メンテナーはふだん 1 日以内に返信
-
ai-chat bug trivial
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
area-signalr
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
dotnet/aspnetcore#69842 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信