Files
meteor/packages/showdown/package.js
2013-07-25 18:54:43 -07:00

19 lines
464 B
JavaScript

// Source: https://github.com/coreyti/showdown
// XXX rename to 'markdown' and credit showdown some other way?
Package.describe({
summary: "Markdown-to-HTML processor"
});
var _ = Npm.require('underscore');
Package.on_use(function (api) {
api.add_files("showdown.js");
api.export('Showdown');
// Define {{markdown}} if handlebars got included.
api.use("handlebars", "client", {weak: true});
api.add_files("template-integration.js", "client");
});