多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
``replace`` =========== The ``replace`` filter formats a given string by replacing the placeholders (placeholders are free-form): .. code-block:: jinja {{ "I like %this% and %that%."|replace({'%this%': foo, '%that%': "bar"}) }} {# outputs I like foo and bar if the foo parameter equals to the foo string. #} Arguments --------- * ``replace_pairs``: The placeholder values .. seealso:: :doc:`format<format>`