title: How to find all the posts with a specific tag in Ghost and iterate over them?
body: <p>I'm currently working on a Ghost blog (Ghost is a Wordpress "successor" that is based on Node.js and other various packages/libraries on that platform), but I'm wondering how I might be able to grab all the posts that have a certain tag in Ghost/Handlebars.js.</p>
  
  <p>The problem is that Ghost's contexts are usually encapsulated to the point that I can't extract a list of all the posts bearing a certain tag out of the API; it's apparently only possible to iterate through the posts from <code>index.hbs</code>, and other solutions are a bit hacker-y or involve more use of jQuery.</p>
  
  <p><strong>How might I be able to get a list or array of all the posts in Ghost so that I can filter them by tag and then iterate over them?</strong> I've even tried a <code>{{#foreach posts}}</code> and <code>{{#has tag='WHATEVER'}}</code> but this method doesn't seem to work out of the box. As a newbie to Ghost and Handlebars, I'm unsure of what to do.  </p>