Upgrade to Pro — share decks privately, control downloads, hide ads and more …

A basic introduction to Mustache

A basic introduction to Mustache

One of my earlier presentations that I did for the Ruby meetup in Perth. A basic introduction to Mustache.

Keith Pitt

August 18, 2011
Tweet

More Decks by Keith Pitt

Other Decks in Programming

Transcript

  1. What is Mustache? • Mustache is a logic-less templating system

    for HTML, config files, anything really • Lightweight • No if statements, else clauses, or for loops Text
  2. * {{name}} * {{age}} * {{company}} * {{{company}}} * Keith

    * * &lt;b&gt;TFG&lt;/b&gt; * <b>TFG</b> Tags { “name”: “Keith”, “company: “<b>TFG</b>” } + =
  3. {{#repo}} <b>{{name}}</b> {{/repo}} <b>rails</b> <b>redis</b> Sections { “repo”: [ {

    “name”: “rails” }, { “name”: “redis” } ] } + =
  4. Support • Ruby • JavaScript • Python • Erlang •

    PHP • Perl • Objective-C • Java • .NET • Android • C++ • Go • LUA • ooc • ActionScript • CoffeeScript • ColdFusion • Scala • Clojure • Fantom • D • node.js