docmeteor icon indicating copy to clipboard operation
docmeteor copied to clipboard

Add template helper documentation

Open aldeed opened this issue 9 years ago • 3 comments

We should think about a good way to support generating docs for template/UI helpers. Maybe we can use a custom tag or just an @alias.

aldeed avatar Oct 29 '14 12:10 aldeed

@aldeed Should it work on eg. Template.foo.helpers({}); or/and global helpers?

{{bar name=""}}
Set in "Template.foo" scope
  • It should know if its a global helper or scoped
  • We have to find a way to support named/unnamed arguments (a helper could support both)
  • Know if its a helper or block-helper {{foo}} or {{>foo}}

if I get this correctly?

raix avatar Oct 29 '14 13:10 raix

Yep, could be tricky. :)

aldeed avatar Oct 29 '14 15:10 aldeed

cc: @aaronjudd

aldeed avatar Oct 29 '14 15:10 aldeed