使用Lightspeed软件中的打印模板,我的"description“变量将由3个变量值编译并传递给我。
我需要把它们分开,只显示最后一个值。
<p class="description">
{% if hide_description == false %}
{{ Label.Item.description | strreplace('_',' ') }}
{% endif %}
</p>
当前输出为:“衬衫蓝色大”
我试过了:
{% filter last %}
{{ Label.Item.description|strreplace('_',' ') }}
{% endfilter %}
这给了我一个错误。
我需要输出“大”,有什么想法吗?
发布于 2018-08-01 03:25:01
https://stackoverflow.com/questions/51620565
复制相似问题