<p>This prepares us for hash-based permalinks (<a href="https://github.com/openstreetmap/openstreetmap-website/issues/81" class="issue-link" title="Use hash-based permalinks">#81</a>) and removes the<br>
duplication between index.html.erb and SiteController#edit.</p>

<p>I've started a discussion on the mailing list regarding JS testing<br>
technologies such as Konacha.</p>

<hr>

<h4>You can merge this Pull Request by running:</h4>
<pre>  git pull https://github.com/jfirebaugh/openstreetmap-website permalinks</pre>
<p>Or view, comment on, or merge it at:</p>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/94'>https://github.com/openstreetmap/openstreetmap-website/pull/94</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Extract layer configuration to map.js</li>
  <li>Move param-based map configuration to client</li>
  <li>Konacha tests for OSM.mapParams</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li><strong>M</strong> Gemfile (4)</li>
  <li><strong>M</strong> Gemfile.lock (33)</li>
  <li><strong>M</strong> app/assets/javascripts/application.js (1)</li>
  <li><strong>M</strong> app/assets/javascripts/globals.js.erb (3)</li>
  <li><strong>M</strong> app/assets/javascripts/map.js.erb (8)</li>
  <li><strong>A</strong> app/assets/javascripts/params.js (100)</li>
  <li><strong>M</strong> app/controllers/site_controller.rb (48)</li>
  <li><strong>M</strong> app/views/layouts/_head.html.erb (8)</li>
  <li><strong>M</strong> app/views/site/_potlatch.html.erb (3)</li>
  <li><strong>M</strong> app/views/site/_potlatch2.html.erb (6)</li>
  <li><strong>M</strong> app/views/site/index.html.erb (145)</li>
  <li><strong>A</strong> config/initializers/konacha.rb (3)</li>
  <li><strong>A</strong> test/javascripts/params_test.js (120)</li>
</ul>

<h4>Patch Links</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/94.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/94.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/94.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/94.diff</a></li>
</ul>


            <p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">
              —<br>
              Reply to this email directly or <a href='https://github.com/openstreetmap/openstreetmap-website/pull/94'>view it on GitHub</a>.
            </p>
            <img src='https://github.com/notifications/beacon/J6T91GIPIyhU-8ti4GCGP98_UZTRAhtyIjAjorWDZ_n759tut4E0lgI9DAeIHeZx.gif' height='1' width='1'>