/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

  1. var partial_context = {
  2. greeting: function() {
  3. return "Welcome";
  4. },
  5. farewell: function() {
  6. return "Fair enough, right?";
  7. },
  8. partial: {
  9. name: "Chris",
  10. value: 10000,
  11. taxed_value: function() {
  12. return this.value - (this.value * 0.4);
  13. },
  14. in_ca: true
  15. }
  16. };