Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

Common approaches to using a HTML template are to:

  • Use a library like Mustache

    • What is wrong with it.

      • 600 lines of code for 5 line code problem

      • 9 contributors

      • It requires programmers to pick {{}} or {{{}}}

    • What parts of Mustache are good?

      • Offers caching of compiling templates

        • Is this premature optimization?

      • Optional special character escaping of some values - using triple {{{}}} bracket notation.

      • Simple if and if not present solution - show what to print if something is not there.

      • Expressed in one file - good

    • What parts of Mustache are not good?

      • Lot of contributors for something for should be simple

  • ECMA literals also could be used as templating mechanism by themselves.

  • No labels