@@ -2,7 +2,7 @@
<div class="container">
<header class="navbar navbar-default" role="navigation">
<div class="navbar-header">
- <a class="navbar-brand" href="{{pathFor 'postsList'}}">Microscope</a>
+ <a class="navbar-brand" href="{{pathFor 'postsList'}}">{{pageTitle}}</a>
</div>
</header>
@@ -0,0 +1,20 @@
+/**
+ * @file
+ *
+ * User: marand
+ * Date: 31/08/15
+ * Time: 08:31
+ */
+
+Template.layout.helpers({
+ pageTitle: function () {
+ var title = Session.get('pageTitle');
+ Meteor._debug(title);
+ if (title == undefined) {
+ title = 'Microscope';
+ Session.set('pageTitle', title);
+ }
+ return title;
+});