diff --git a/lib/breadcrumb.js b/lib/breadcrumb.js index a57f4c6..a145b2c 100644 --- a/lib/breadcrumb.js +++ b/lib/breadcrumb.js @@ -1,11 +1,6 @@ // Write your package code here! (function () { -/* Imports */ -var Meteor = Package.meteor.Meteor; -var Tracker = Package.tracker.Tracker; -var Deps = Package.tracker.Deps; - /* Package-scope variables */ var Breadcrumb; @@ -40,4 +35,9 @@ Package['monbro:iron-router-breadcrumb'] = { Breadcrumb: Breadcrumb }; -})(); \ No newline at end of file +})(); + +// register a template helper function +UI.registerHelper('Breadcrumb', function(template) { + return 'this/is/a/sample/breadcrumb'; +}); \ No newline at end of file diff --git a/package.js b/package.js index ae47e47..7525522 100644 --- a/package.js +++ b/package.js @@ -1,7 +1,7 @@ Package.describe({ name: 'monbro:iron-router-breadcrumb', summary: 'This package will provide a easy way to add a breadcrumb to Iron.Router with enough flexibility.', - version: '1.0.0', + version: '1.0.1', git: 'https://github.com/monbro/meteor-breadcrumb-plugin/' }); @@ -11,10 +11,29 @@ Package.onUse(function(api) { api.use([ 'templating', + 'meteor', 'ui', "iron:core@1.0.0", ], "client"); + // main namespace and utils + api.use('iron:core@1.0.0'); + + // ui layout + api.use('iron:layout@1.0.0'); + + // connect like middleware stack for client/server + api.use('iron:middleware-stack@1.0.0'); + + // client and server side url utilities and compiling + api.use('iron:url@1.0.0'); + + // for reactive urls and pushState in the browser + api.use('iron:location@1.0.0'); + + // for RouteController which inherits from this + api.use('iron:controller@1.0.0'); + api.export('Breadcrumb', ['client', 'server']); }); diff --git a/versions.json b/versions.json index 79b5cf0..c0a745c 100644 --- a/versions.json +++ b/versions.json @@ -28,10 +28,34 @@ "id-map", "1.0.1" ], + [ + "iron:controller", + "1.0.0" + ], [ "iron:core", "1.0.3" ], + [ + "iron:dynamic-template", + "1.0.3" + ], + [ + "iron:layout", + "1.0.3" + ], + [ + "iron:location", + "1.0.3" + ], + [ + "iron:middleware-stack", + "1.0.0" + ], + [ + "iron:url", + "1.0.3" + ], [ "jquery", "1.0.1" @@ -46,7 +70,7 @@ ], [ "minimongo", - "1.0.4" + "1.0.5" ], [ "observe-sequence", @@ -60,6 +84,10 @@ "random", "1.0.1" ], + [ + "reactive-dict", + "1.0.4" + ], [ "reactive-var", "1.0.3"