File: whitespace_partial.js

package info (click to toggle)
mustache.js 0.4.2-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 684 kB
  • ctags: 95
  • sloc: ruby: 222; makefile: 11
file content (19 lines) | stat: -rw-r--r-- 299 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
var partial_context = {
  greeting: function() {
    return "Welcome";
  },

  farewell: function() {
    return "Fair enough, right?";
  },

  partial: {
    name: "Chris",
    value: 10000,
    taxed_value: function() {
      return this.value - (this.value * 0.4);
    },
    in_ca: true
  }
};