smarty 标签之{ldelim}、{literal}

比如想在在页面原样输出$a

{ldelim}$a{rdelim}

想要不被smarty解析的用标签literal

{literal}
<script>
    function display(){
        alert('hello word');
    }
</script>
{/literal}

  

原文地址:https://www.cnblogs.com/codelifewangwen/p/3147491.html