Permalink
Browse files

Fix showdown package (and docs)

  • Loading branch information...
1 parent db36619 commit 5f5623a05df19d2c6e5a9e7cf59916867aba9fcb @dgreensp dgreensp committed Jul 7, 2014
Showing with 5 additions and 3 deletions.
  1. +1 −1 packages/showdown/package.js
  2. +4 −2 packages/showdown/template-integration.js
View
2 packages/showdown/package.js
@@ -10,7 +10,7 @@ Package.on_use(function (api) {
api.add_files("showdown.js");
api.export('Showdown');
- api.use("ui", "client", {weak: true});
+ api.use("templating", "client", {weak: true});
api.add_files('template-integration.js', 'client');
});
View
6 packages/showdown/template-integration.js
@@ -1,6 +1,8 @@
-if (Package.blaze) {
- var Blaze = Package.blaze.Blaze;
+if (Package.templating) {
+ var Template = Package.templating.Template;
+ var UI = Package.ui.UI; // implied by `templating`
var HTML = Package.htmljs.HTML; // implied by `ui`
+ var Blaze = Package.blaze.Blaze; // implied by `ui`
UI.registerHelper("markdown", Template.__create__('markdown', function () {
var view = this;

0 comments on commit 5f5623a

Please sign in to comment.