Meteor Template Var

screenshot of Meteor Template Var

Works as a wrapper for meteors ReactiveVar, but template instance specific.

Overview:

The TemplateVar is a wrapper for Meteors ReactiveVar that provides reactive variables for template instance specific reactivity. It can be used in template helpers, event handlers, callbacks (created, rendered, destroyed), or autorun. This allows for easy setting and getting of properties inside a template, as well as cross-template communication.

Features:

  • Template-specific reactivity: TemplateVar allows for the use of reactive variables that are specific to each template instance.
  • Easy setting and getting of properties: TemplateVar simplifies the process of setting and getting properties inside a template, making it more intuitive.
  • Cross-template communication: TemplateVar provides methods for setting and getting the TemplateVar of another template, allowing for communication between templates.

Summary:

The TemplateVar package provides a convenient way to work with reactive variables in Meteor templates. It allows for template-specific reactivity and simplifies the process of setting and getting properties inside a template. Additionally, it provides methods for cross-template communication, making it easier to share data between templates. Overall, the TemplateVar package improves the efficiency and ease of working with reactive variables in Meteor.