Created
May 17, 2015 05:25
-
-
Save derekbassett/99f7d496370b1f21af9e to your computer and use it in GitHub Desktop.
Revisions
-
derekbassett created this gist
May 17, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ Alternatively, if you need to find out more about the data context of a specific template fragment, you can also write a dedicated {{log}} helper: Template.profile.helpers({ log: function () { console.log(this); } }); And use it directly in your templates: <template name="profile"> {{#with profile}} {{log}} <img src="{{avatar}}"/> <p>{{name}}</p> {{/with}} </template>