title: Meteor Flow Router setting up example.com/singlePostPage
body: <p>I can not manage to create the routes to show a single post with flowrouter and blaze in Meteor.</p>
  
  <p>This is what I have so far which I am sure its mostly wrong!</p>
  
  <p><code>publications.js</code></p>
  
  <pre><code>Meteor.publish('singlePost', function (postId) {
    return Posts.find({ _id: postId });
  });
  </code></pre>
  
  <p><code>Router.js</code> </p>
  
  <pre><code>FlowRouter.route("/posts/:_id", {
      name: "postPage",
      subscriptions: function (params, queryParams) {
       this.register('postPage', Meteor.subscribe('singlePost'));
   },
      action: function(params, queryParams) {
          BlazeLayout.render("nav", {yield: "postPage"} )
      }
  });
  </code></pre>
  
  <p><code>singlePost.JS</code></p>
  
  <pre><code>Template.postPage.helpers({
    thisPost: function(){
      return Posts.findOne();
    }
  });
  </code></pre>
  
  <p><code>singlePost.html</code></p>
  
  <pre><code>&lt;template name="postPage"&gt;
    {{#with thisPost}}
      &lt;li&gt;{{title}}&lt;/li&gt;
    {{/with}}
  &lt;/template&gt;
  </code></pre>
  
  <p>I used to do it back then with Iron router but now got confused with Flow router.</p>