Is it possible to do something like this:
Template.hello.rendered = function() {
$("#timepicker-default").timepicker();
};
Inside of a package, independent of the actual template name.
Ignoring any other issues with the above pseudocode, what I'm wondering is how can I select DOM elements from within a package. Is it possible to write a package that can find the input element with data-attribute or a class of timepicker and generate the above code inserting the id of that element?
So you could write your markup like
<input id="mytimepicker" type="text" data-timepicker="default">
And the package would handle the rest.