HTML Templates in Javascript? Without coding in the page?

后端 未结 12 1406
暗喜
暗喜 2020-12-04 18:32

I am a web guy doing mostly Perl server-side stuff, and I\'m slowly coming to a few conclusions.

  • It is far better to do most of your code via Javascript and t
12条回答
  •  甜味超标
    2020-12-04 19:06

    The 2 libs I know that do not mix template coding with HTML markups are chain.js and PURE

    chain makes only DOM manipulations.
    PURE uses a mix of DOM and innerHTML as the DOM alone can be slow to render bigger templates.

    I'm the main contributor of PURE, and we created it to build a web app on the ajax model you describe.

提交回复
热议问题