在smarty模板中,您可以将模板中的原始PHP代码放在"literal"模板标记中:
{literal} echo 'hello world'; {/literal}
如何在Django模板中使用原始python代码?
python django
django ×1
python ×1