mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
- package.js now has a top-level 'Npm.depends' directive - both bundle-time and server run-time code can get access to any dependent npm module with 'Npm.require'
24 lines
862 B
JavaScript
24 lines
862 B
JavaScript
// XXX this is hella confusing. this package really only has the
|
|
// handlebars *runtime*, for precompiled templates. so really it is an
|
|
// internal package that should get shipped down to the client iff you
|
|
// have a precompiled handlebars template in your project.
|
|
|
|
Package.describe({
|
|
summary: "Simple semantic templating language"
|
|
});
|
|
|
|
Package._require('parse.js'); // needed at bundle time
|
|
|
|
Package.on_use(function (api) {
|
|
// XXX should only be sent if we have handlebars templates in the app..
|
|
api.add_files('evaluate.js', 'client');
|
|
api.add_files('parse.js', 'server'); // needed on server for tests
|
|
|
|
api.use('underscore', 'client');
|
|
});
|
|
|
|
// XXX lots more to do here .. registering this a templating engine,
|
|
// making it the default default, providing the compiler code,
|
|
// depending on the node package (or packaging the compiler
|
|
// ourselves..)
|