sergeyt / meteor-typeahead

Autocomplete package for meteor powered by twitter typeahead.js
https://atmospherejs.com/sergeyt/typeahead
MIT License
146 stars 82 forks source link

Support global template helpers for data-sources attribute #67

Closed woniesong92 closed 9 years ago

woniesong92 commented 9 years ago

Right now, we only search for the helper functions inside the current template. We should also search in UI._globalHelpers to see if the function specified in data-sources is available.

sergeyt commented 9 years ago

@woniesong92 I think searching only in current template is enough for most use cases, also it makes template to be self-sufficient without dependency on any global stuff. However we could discuss to support explicit global: prefix in data-source attribute to specify use of function from UI._globalHelpers.