We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
domain
postItem
1 parent 9ceb5f8 commit 0852258Copy full SHA for 0852258
client/templates/posts/post_item.js
@@ -0,0 +1,7 @@
1
+Template.postItem.helpers({
2
+ domain: function() {
3
+ var a = document.createElement('a');
4
+ a.href = this.url;
5
+ return a.hostname;
6
+ }
7
+});
0 commit comments