<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CKAN: Ticket #2527: Implement a method of loading templates into the demo site</title>
    <link>http://localhost/ticket/2527</link>
    <description>&lt;p&gt;
&lt;a class="missing wiki"&gt;JavaScript?&lt;/a&gt; needs to be able to insert html templates into the document.
&lt;/p&gt;
&lt;p&gt;
There are three common solutions to templating at the moment.
&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;Insert the html into &amp;lt;script&amp;gt; tags at the bottom of the page and pull them in using the DOM and innerHTML. This is a very simple solution but not very portable.
&lt;/li&gt;&lt;li&gt;Request the HTML snippets as plain text/html using XHR. This adds an extra HTTP request per template but is very clean. It would also be possible to inline the HTML into the JS at the minification stage for production.
&lt;/li&gt;&lt;li&gt;Include the HTML in &lt;a class="missing wiki"&gt;JavaScript?&lt;/a&gt; strings (horrible to maintain and bloats the js)
&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;
It makes sense to keep these with the other templates so that we can take advantage of localisation where possible. This indicates 1 or 2.
&lt;/p&gt;
</description>
    <language>en-us</language>
    <image>
      <title>CKAN</title>
      <url>http://assets.okfn.org/p/ckan/img/ckan_logo_shortname.png</url>
      <link>http://localhost/ticket/2527</link>
    </image>
    <generator>Trac 0.12.3</generator>
    <item>
      
        <dc:creator>aron.carroll</dc:creator>

      <pubDate>Thu, 14 Jun 2012 14:08:22 GMT</pubDate>
      <title>description changed</title>
      <link>http://localhost/ticket/2527#comment:1</link>
      <guid isPermaLink="false">http://localhost/ticket/2527#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;description&lt;/strong&gt;
              modified (&lt;a href="/ticket/2527?action=diff&amp;amp;version=1"&gt;diff&lt;/a&gt;)
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>toby</dc:creator>

      <pubDate>Thu, 14 Jun 2012 14:14:24 GMT</pubDate>
      <title></title>
      <link>http://localhost/ticket/2527#comment:2</link>
      <guid isPermaLink="false">http://localhost/ticket/2527#comment:2</guid>
      <description>
        &lt;p&gt;
Do we have a specific usecase for this?
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>seanh</dc:creator>

      <pubDate>Mon, 18 Jun 2012 15:33:04 GMT</pubDate>
      <title>status changed; owner set</title>
      <link>http://localhost/ticket/2527#comment:3</link>
      <guid isPermaLink="false">http://localhost/ticket/2527#comment:3</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;owner&lt;/strong&gt;
              set to &lt;em&gt;aron.carroll&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;assigned&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>aron.carroll</dc:creator>

      <pubDate>Tue, 19 Jun 2012 14:28:50 GMT</pubDate>
      <title>status changed; resolution set</title>
      <link>http://localhost/ticket/2527#comment:4</link>
      <guid isPermaLink="false">http://localhost/ticket/2527#comment:4</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;assigned&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;wontfix&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Closing as this has been superceded by &lt;a class="closed ticket" href="http://localhost/ticket/2553" title="enhancement: Create a get snippet api action (closed: fixed)"&gt;#2553&lt;/a&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>