<p>There are a few other JS-related cleanups in this PR, but<br>
the main commit replaces the tedious manual DOM manipulation<br>
with EJS templates.</p>
<p>EJS is sort of the lowest common denominator JS templating<br>
language. It would be fairly easy to port to mustache or<br>
something if anyone has a strong preference. I've purposefully<br>
kept the templates pretty much logic-free.</p>
<hr>
<h4>You can merge this Pull Request by running:</h4>
<pre> git pull https://github.com/jfirebaugh/openstreetmap-website js</pre>
<p>Or view, comment on, or merge it at:</p>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/127'>https://github.com/openstreetmap/openstreetmap-website/pull/127</a></p>
<h4>Commit Summary</h4>
<ul>
<li>Move export-related JS to export.js</li>
<li>Move browse-related JS to browse.js</li>
<li>Use proj/unproj consistently</li>
<li>Use ejs templates in browse JS</li>
</ul>
<h4>File Changes</h4>
<ul>
<li><strong>M</strong> Gemfile (1)</li>
<li><strong>M</strong> Gemfile.lock (2)</li>
<li><strong>M</strong> app/assets/javascripts/browse.js (2)</li>
<li><strong>M</strong> app/assets/javascripts/index.js (18)</li>
<li><strong>M</strong> app/assets/javascripts/index/browse.js (822)</li>
<li><strong>M</strong> app/assets/javascripts/index/export.js (480)</li>
<li><strong>M</strong> app/assets/javascripts/map.js.erb (2)</li>
<li><strong>A</strong> app/assets/javascripts/templates/browse/feature.jst.ejs (19)</li>
<li><strong>A</strong> app/assets/javascripts/templates/browse/feature_history.jst.ejs (15)</li>
<li><strong>A</strong> app/assets/javascripts/templates/browse/feature_list.jst.ejs (9)</li>
</ul>
<h4>Patch Links</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/127.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/127.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/127.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/127.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/127'>view it on GitHub</a>.
</p>
<img src='https://github.com/notifications/beacon/J6T91GIPIyhU-8ti4GCGP98_UZTRAhtyIjAjorWDZ_lYyoQVrRgUrQ32CFJTOhOf.gif' height='1' width='1'>