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

前端 未结 10 1764
青春惊慌失措
青春惊慌失措 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:35

    Your non-answers look like real answers but phrased in a very condescending manner. For example:

    babysitting bad developers (i.e. use a template engine because it forces you to not mix code into presentation)

    I would call this an application of the Rule of Least Power. It makes your template much more useful for all users, not just "bad developers".

    Restrictions are what make programming languages. PHP doesn't have an inline-assembly feature, and it's not because Rasmus thought you are all "babies".

提交回复
热议问题