Maybe the problem was in not using Template.compile.