<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Cleaner way of coding Popup Template in Open Source Mapping Libraries Ques.</title>
    <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/cleaner-way-of-coding-popup-template/m-p/1050862#M112</link>
    <description>&lt;P&gt;Instead of storing html in JavaScript popuptemplate variable (see below), is there a way to save popup template as an html file and pass a JavaScript object to the html?&lt;/P&gt;
&lt;P&gt;Currently following code is working for me. Just trying to find a cleaner way.&lt;/P&gt;
&lt;P&gt;var popupTemplate = (o) =&amp;gt;&lt;BR /&gt;`&amp;lt;div&amp;gt;${o.variable_name}&amp;lt;/div&amp;gt;`&lt;/P&gt;
&lt;P&gt;Any other ideas are welcome too.&lt;/P&gt;
&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Aug 2023 20:16:40 GMT</pubDate>
    <dc:creator>Seadreamer</dc:creator>
    <dc:date>2023-08-25T20:16:40Z</dc:date>
    <item>
      <title>Cleaner way of coding Popup Template</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/cleaner-way-of-coding-popup-template/m-p/1050862#M112</link>
      <description>&lt;P&gt;Instead of storing html in JavaScript popuptemplate variable (see below), is there a way to save popup template as an html file and pass a JavaScript object to the html?&lt;/P&gt;
&lt;P&gt;Currently following code is working for me. Just trying to find a cleaner way.&lt;/P&gt;
&lt;P&gt;var popupTemplate = (o) =&amp;gt;&lt;BR /&gt;`&amp;lt;div&amp;gt;${o.variable_name}&amp;lt;/div&amp;gt;`&lt;/P&gt;
&lt;P&gt;Any other ideas are welcome too.&lt;/P&gt;
&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 20:16:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/cleaner-way-of-coding-popup-template/m-p/1050862#M112</guid>
      <dc:creator>Seadreamer</dc:creator>
      <dc:date>2023-08-25T20:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaner way of coding Popup Template</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/cleaner-way-of-coding-popup-template/m-p/1073842#M113</link>
      <description>&lt;P&gt;I think that's a good way to do it. &lt;A href="https://esri.github.io/esri-leaflet/examples/feature-layer-popups.html" target="_self"&gt;This sample&lt;/A&gt; uses &lt;A href="https://leafletjs.com/reference-1.7.1.html#util-template" target="_self"&gt;L.Util.template&lt;/A&gt; which is a slightly different way to do it, so that's an alternative for you too.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 18:41:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/cleaner-way-of-coding-popup-template/m-p/1073842#M113</guid>
      <dc:creator>GavinRehkemper</dc:creator>
      <dc:date>2021-06-29T18:41:45Z</dc:date>
    </item>
  </channel>
</rss>

