I started to use Coffeescript on my Meteor app and while in packages everything works great, I've encountered some issues while converting my js files template functions into .coffee.
Even though the coffeescript seems to be correct when I compile it, my helpers and events don't seem to be triggered when I render the web page. I don't even get an error on the web console.
I searched but couldn't find anything but this thread.
I use Jade, Coffeescript and my .coffee and .jade files are located in the same folder, giving something like :
client/templates/myTemplate/myTemplate.jade
client/templates/myTemplate/myTemplate.coffee
I tried the _ method, to rename my files to .html.jade and js.coffee but nothing worked so far. If I put the computed javascript in a myTemplate.js file, everything works.
Any thoughts?
Below is a sample of the code:
Template.loginButton.helpers
statusText: () ->
console.log 'anybody there?'
if Meteor.user() then "Déconnexion" else "Connexion"