HTML Templates — php?

前端 未结 4 1510
时光说笑
时光说笑 2021-02-05 23:20

So, I\'m making a site about WWI as a school assignment, and I want this to appear in every document:





    <         


        
4条回答
  •  礼貌的吻别
    2021-02-05 23:58

    You could consider one of these popular template engines :

    • Smarty (becoming outdated)

    • Latte (used mostly by the Nette community)

    • Twig (used mostly by the Symfony community)

    • Mustache (official implementations of this templating engine exist in more than two dozen proramming/scripting languages)

    I tend to favor Mustache, mostly because it has an official JS version, an official Ruby version, an official Java version, etc. It allows you to use the same templates frontend and backend, which is very useful for widgets that are first rendered in background and rerendered in foreground at updates.

提交回复
热议问题