title: Parsing text into dimensional hash
body: <p>I want to convert this string of text into a hash for creating pages based on users input.</p>
  
  <pre><code>Home
  About
  - News
  -- Local News
  -- Global News
  - Who We Are
  Product
  </code></pre>
  
  <p>This is just an example, but I'd like to convert this into a multidimensional hash I can iterate through. I want to create an easy way for users to create pages in a CMS.</p>
  
  <p>I've played around with splitting up the string and regular expressions, but I haven't made it far.</p>
  
  <p>Any help would be greatly appreciated!</p>