title: How to pass attribute value with double slash to a template
body: <p>I am trying to develop a cookbook which is going to support both Windows and Linux platform. I am having some issue while working with a template. So, basically I am trying to put a shell script which will have a <code>export</code> command with a path. But I am not able to get the exact value on the shell script on the windows. </p>
  
  <p><strong>Attribute:</strong></p>
  
  <pre><code>root_path = value_for_platform(
    'windows' =&gt; { 'default' =&gt; "D:\\" },
    'default' =&gt; '/opt'
  )
  xyz_path = value_for_platform(
    'windows' =&gt; { 'default' =&gt; "#{root_path}xyz_app\\tool\\bin\\xyz.bat" },
    'default' =&gt; "#{root_path}/xyz_app//tool//bin//xyz"
  )
  </code></pre>
  
  <p><strong>Recipe:</strong></p>
  
  <pre><code>template File.join(root_path, '/tmp/xyz_path.sh') do
    source 'xyz_path.sh.erb'
    mode '0755'
    variables({
      :xyz_path =&gt; xyz_path
    })
  end
  </code></pre>
  
  <p><strong>Template</strong></p>
  
  <pre><code>#!/bin/bash
  
  export xyz_path = &lt;%= @xyz_path %&gt;
  </code></pre>
  
  <p><strong>Expectation on Windows</strong></p>
  
  <pre><code>#!/bin/bash
  
  export xyz_path = D:\\xyz_app\\tool\\bin\\xyz.bat
  </code></pre>
  
  <p><strong>Reality on Windows</strong></p>
  
  <pre><code>#!/bin/bash
  
  export xyz_path = D:\xyz_app\tool\bin\xyz.bat
  </code></pre>