Blaze.getData or jQuery DOM

Hello everyone

We end up questionning ourself in this post Spacebars #each access to sibling what is the best way to access a node data context in meteor.

For example, we could use a data-x attribute in the template and access it with jQuery, or we could use the Blaze.getData API to dot that.

Any thought ?

Best regards,


1 Like

meteor personally recommends using Blaze over jQuery for managing templates, this would basically for performance, blaze uses jquery internally.

In my application I have a big chat (really big) and chat UI runs smoothly, have tried to do everything in a simple way, when I want to access another data context I use Template.parentData or reactiveVar, but I’ve never really had to go directly to blaze or jquery