Ive never used Zclip so hopefully im helpful, including that other correct element problem:
When using <.. id='..'
you need to make sure each is unique or else the DOM breaks :
Instead of <p id="copy">
use something like <p id="{{_id}}" class="copy">
I try to access the templates data with this.data
Template.copy.rendered = function() {
$('#' + this.data._id).zclip({
path:"http://www.steamdev.com/zclip/js/ZeroClipboard.swf",
copy:this.data.name
});
}
}
And so each copy click works use this style of template
HTML:
I've split up the list so that copies is in its own template so the rendered function above can get its own data context
<template name="list">
{{#each copies}}
{{>copy}}
{{/each}
</template>
<template name="copy">
<p id="{{_id}}" class="copy">{{name}}</p>
</template>
EDIT
1) Add JQuery using Meteor instead of with <script>
use the meteor package: In your project directory add JQuery:
meteor add jquery
2) Add the file at http://www.steamdev.com/zclip/js/jquery.zclip.min.js to a folder in your project at client/lib
The error occurs because zclip hasn't yet loaded yet.