PageRenderTime 9ms CodeModel.GetById 5ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/scalate-util/src/test/resources/moustache/js/view_partial.js

http://github.com/scalate/scalate
JavaScript | 19 lines | 16 code | 3 blank | 0 comment | 0 complexity | f920be37353a5929794103c80dffec0d MD5 | raw file
 1var partial_context = {
 2  greeting: function() {
 3    return "Welcome";
 4  },
 5
 6  farewell: function() {
 7    return "Fair enough, right?";
 8  },
 9
10  partial: {
11    name: "Chris",
12    value: 10000,
13    taxed_value: function() {
14      return this.value - (this.value * 0.4);
15    },
16    in_ca: true
17  }
18};
19