Why use a templating engine with a framework?

后端 未结 6 1273
迷失自我
迷失自我 2021-02-05 02:56

I recently discovered the PHP framework Kohana (which is awesome) and was reading a thread about using it in conjunction with a templating engine such as Smarty or Twig. My ques

6条回答
  •  春和景丽
    2021-02-05 03:34

    Unless you allow for short tags,

    {$foo}
    

    is much more readable than

    
    

    Multiplied over a large project, it adds up.

提交回复
热议问题