post_item.js 220 B

12345678910111213141516
  1. /**
  2. * @file
  3. *
  4. *
  5. * User: marand
  6. * Date: 30/08/15
  7. * Time: 10:15
  8. */
  9. Template.postItem.helpers({
  10. domain: function () {
  11. var a = document.createElement('a');
  12. a.href = this.url;
  13. return a.hostname;
  14. }
  15. });