I'm using Meteor. I need to get and display data from a site. I'm trying to do this with jQuery, but is not working. What do I do? There is a native of Meteor method to do this?
Example:
Template.test.helpers({
load: function () {
$(".first").load("http://www.jekyllrb.com");
return $(".p")}
});
<head>
<title>test</title>
</head>
<body>
<h1>Welcome to Meteor!</h1>
{{> test}}
</body>
<template name="test">
{{load}}
</template>
The result is the array [object] [Object]
. What is the solution?