Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
プレースホルダー内に配置された最後の(または最初の)プラグインを検出する方法はありますか?
最後のプラグインの場合に備えて、プラグインテンプレートにclass="last"を追加したいと思います。
これを試してみてください:
{%if plugin.last%}これは現在のプレースホルダーの最後のプラグインです{%endif%}
(plugin.firstも機能するはずです)