Hi,
For example the Meteor Blaze tutorial contains an example import declaration:
import { Template } from 'meteor/templating'
How can I guess this path?
When I look at the ./meteor/packages
file I see blaze-html-templates@1.0.4
in it not templating
.
When I go to the Meteor github repository, I also do not find such package.
So then, I continue my search to the Blaze developers site and look at the Template Declarations section of the API documentation.
There, next to the import { Template } from 'meteor/templating'
declaration, I see the blaze/template.js, line 477
. Clicking on it nicely gets me to the source code defining the Template object that I need to import in my file containing the Spacebar or Jade template helpers and event handlers.
So the question is, why shoudn’t I have to do:
import { Template } from 'blaze/template'
or
ìmport { Template } from 'meteor/blaze-html-templates/template'
instead of
import { Template } from 'meteor/templating'
Thanks for clarifying this point