title: How to dump different hash objects into a erb template
body: <p>I have a erb template like this, and i want to dump hash objects into it directly.</p>
  
  <pre><code># test.yml.erb
  ---
  name: &lt;%= name || "bat" %&gt;
  director_uuid: &lt;%= uuid %&gt;
  
  release:
    name: bat
    version: &lt;%= release.name || "latest" %&gt;
  
  &lt;%= YAML.dump(compilation) %&gt;
  
  update:
    canaries: 1
    canary_watch_time: 3000-90000
  
  &lt;%= YAML.dump(network)%&gt;
  </code></pre>
  
  <p>but i use <code>ERB.new(test.yml.erb).result(binding)</code> just get this:
      # test.yml
      ---
      name: bat
      director_uuid: uuid</p>
  
  <pre><code>release:
    name: bat
    version: lastest
  
  ---
  compliaton:
    workers: 1
    network: default    
  
  update:
    canaries: 1
    canary_watch_time: 3000-90000
  
  ---
  networks:
    name: default
  </code></pre>
  
  <p>Is there a way to  remove unneeded <code>---</code>?
  Any help would be appreciated</p>