2017-02-02 7 views
1

私の枝にhtmlを出力するのに問題があります。私はBolt CMS 3.2を使用しています。Bolt CMSを使ってtwigファイルにHTMLを出力する

{% for item in menu %} 
    <li class="list-inline {{ item.path == '/#' ? 'dropdown' }}"> 
     <a href="{{ item.path }}" > 
      {% autoescape %} 
       {% set caret = '<span class="caret"></span>' %} 
       {{ (item.path == '/#') ? caret|raw : item.label }} 
      {% endautoescape %} 
     </a> 
    </li> 
{% endfor %} 

しかし、htmlを文字列として出力し続けます。私はautoescape値を使用しましたが、ここでは何もしません。私はそれを間違って使用しましたか?

答えて

関連する問題