Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2014
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. comment (depth 0)
  2. comment (depth 1)
  3. comment (depth 2)
  4.  
  5. {{#messages}}
  6. {>message}
  7. {{/messages}}
  8. <!-- {{>message}} -->
  9. <div class="{{getClasses()}}"">{{text}}</div>
  10. {{incrDepth()}}
  11.  
  12. {{#comments}}
  13. {{>message}}
  14. {{/comments}}
  15.  
  16. {{decrDepth()}}
  17. <!-- {{/message}} -->
  18.  
  19. {
  20. data: {
  21. incrDepth: function () {
  22. this.depth++;
  23. },
  24.  
  25. decrDepth: function () {
  26. this.depth--;
  27. },
  28.  
  29. getClasses: function () {
  30. return 'depth' + this.depth;
  31. }
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement