What are the real advantages of templating engines over just using PHP?

前端 未结 10 1638
青春惊慌失措
青春惊慌失措 2021-02-05 02:33

I develop my web applications using only PHP for the view files and I don\'t feel limited in any way, but I hear there\'s a consistent number of developers advocating \"external

10条回答
  •  死守一世寂寞
    2021-02-05 03:26

    If you'd like to develop applications that can be customized with a lot of different templates and layouts while keeping the design separated from the logic, e.g. for different customers, you may want to consider using a template system.

    But if your applications just need one template and never change the layout a lot, then stick with what works for you, why change? :)

提交回复
热议问题