mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
In minimongo, we support various types as _id fields; the most important are strings and ObjectIds. We have a special encoding that we use when we need to represent them as strings, but we had a few bugs with using it. minimongo: The duplicate-ID check in insert needed to check using the encoded string. spark OrderedDict: due to linker changes, it was not successfully finding LocalCollection._idStringify, and so it fell back to the identity function. Fixed to use weak dependencies. Also, later refactorings have removed the need for idStringify(null) === null so that special case is removed. spark branch labels: use idStringify in various places where _id is used as a branch label.
39 lines
1.2 KiB
JavaScript
39 lines
1.2 KiB
JavaScript
Package.describe({
|
|
summary: "Simple semantic templating language",
|
|
internal: true
|
|
});
|
|
|
|
Npm.depends({handlebars: '1.0.7'});
|
|
|
|
Package.on_use(function (api) {
|
|
api.use('underscore');
|
|
api.use('spark', 'client');
|
|
|
|
api.export('Handlebars');
|
|
|
|
|
|
// If we have minimongo available, use its idStringify function.
|
|
api.use('minimongo', 'client', {weak: true});
|
|
|
|
// XXX these should be split up into two different slices, not
|
|
// different code with totally different APIs that is sent depending
|
|
// on the architecture
|
|
api.add_files('parse-handlebars.js', 'server');
|
|
api.add_files('evaluate-handlebars.js', 'client');
|
|
|
|
// XXX This package has been folded into the 'templating' package
|
|
// for now. Historically, you could see it in your package list
|
|
// (because it didn't have internal: true, which it probably should
|
|
// have), but adding it didn't do anything (because it just
|
|
// contained the handlebars precompiler and runtime, not any
|
|
// functions you could call yourself.) So leave it around as an
|
|
// empty package for the moment so as to not break the projects of
|
|
// anyone that happened to type 'meteor add handlebars' because they
|
|
// thought they had to.
|
|
});
|
|
|
|
Package.on_test(function (api) {
|
|
api.use('tinytest');
|
|
api.use('underscore');
|
|
});
|