meteor-template-var
meteor-template-var copied to clipboard
Works as a wrapper for meteors ReactiveVar, but template instance specific.
I'm trying to work inter-template get/set but can't seem to pass the template in this form: `TemplateVar.set(Template.someTemplate, "someKey", "someValue");` which traces to: ``` _getTemplateInstance: function(givenTemplate, key, value){ var template =...
I think this package is the natural place for a function everyone uses (see below), nicely integrated with the package API. ``` javascript // Returns an ancestor instance of the...
typos
request "set/get" with default value Ex: ``` js TemplateVar.setDefault('myProperty', 'valueIfNotSet'); TemplateVar.get('myProperty', ['valueIfNotSet']); ```
Hey Fabian! Check out this pad http://meteorpad.com/pad/QtSnfka2yiqS4jYhd/Leaderboard I have a library here -'autoNumeric' - which formats input fields to contain only digits. It gets initialized in onRendered block. For some...