Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Mustache is a fine templating library and liked by a lot of people. However I see these drawbacks:

  • 600 lines of code, 9 contributors for 20 line code problem It’s - it’s therefore difficult to understand completely.

  • A lot bugs arise from people using Mustache and using {{ }} instead of All data is automatically escaped for special characters in HTML.

    • In mustache programmers need to learn from the school of hard knocks to always use {{{ }}}

    . The later format is required if you have data which includes & < and > characters. Not using the later form results in subtle bugs that only show up later
  • It has no unnecessary features like template

    • Template caching - which exchanges speed for memory usage and adds complexity

    - and a
    • . The simpler library will be faster

    . This optimizing for a complicated design
    • by design.

    • There are no fancy callback features to tempt developers to write complicated code. It’s only going to work with an array of data.

    • No if statements if data isn’t present - encouraging separation of concerns.