<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CKAN: Ticket #2254: better hooks for templates</title>
    <link>http://localhost/ticket/2254</link>
    <description>&lt;p&gt;
TD look at issues and then email ckan-dev
&lt;/p&gt;
&lt;p&gt;
meeting notes from 21-3-2012
general ideas non specific
&lt;/p&gt;
&lt;p&gt;
Problem:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;We want to remove the Transformer usage due to performance and its close tie to genshi
&lt;/li&gt;&lt;li&gt;Want a standard way for core code and extensions to put code into the templates where *templates request it* (templates control insertion rather than extensions ...)
&lt;/li&gt;&lt;li&gt;Stacking versus overwriting on entry points
&lt;ul&gt;&lt;li&gt;Relationship to h.requires('jquery', version) - &lt;a class="ext-link" href="http://codex.wordpress.org/Function_Reference/wp_enqueue_script"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://codex.wordpress.org/Function_Reference/wp_enqueue_script&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
Options:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;placeholders or helper methods
&lt;/li&gt;&lt;li&gt;{{user _info}} {{sub_menu}} is this equivalent to &amp;lt;span class="insert-user-info"&amp;gt;&amp;lt;/span&amp;gt;
&lt;ul&gt;&lt;li&gt;[xyz arguments] -&amp;gt; h.load_snippet('xyz', ...)
&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;${h.snipit()}
&lt;/li&gt;&lt;/ul&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/2254</link>
    </image>
    <generator>Trac 0.12.3</generator>
    <item>
      
        <dc:creator>toby</dc:creator>

      <pubDate>Wed, 21 Mar 2012 15:19:58 GMT</pubDate>
      <title></title>
      <link>http://localhost/ticket/2254#comment:1</link>
      <guid isPermaLink="false">http://localhost/ticket/2254#comment:1</guid>
      <description>
        &lt;p&gt;
What do we want to be able to do?
&lt;/p&gt;
&lt;p&gt;
what do we use the stream stuff for at the moment?
&lt;/p&gt;
&lt;p&gt;
la la la
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>toby</dc:creator>

      <pubDate>Wed, 28 Mar 2012 16:04:38 GMT</pubDate>
      <title></title>
      <link>http://localhost/ticket/2254#comment:2</link>
      <guid isPermaLink="false">http://localhost/ticket/2254#comment:2</guid>
      <description>
        &lt;p&gt;
plan of attack
&lt;/p&gt;
&lt;p&gt;
a) get removal of TDH from core - this will give a better idea of the issues involved
&lt;/p&gt;
&lt;p&gt;
b) have a think
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>toby</dc:creator>

      <pubDate>Mon, 28 May 2012 13:05:16 GMT</pubDate>
      <title>status changed; resolution set</title>
      <link>http://localhost/ticket/2254#comment:3</link>
      <guid isPermaLink="false">http://localhost/ticket/2254#comment:3</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&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;fixed&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
closing.
&lt;/p&gt;
&lt;p&gt;
we have fanstatic integration in ckan.demo work
&lt;/p&gt;
&lt;p&gt;
tdh is it's own extension
&lt;/p&gt;
&lt;p&gt;
h.snippet is in 1.7
&lt;/p&gt;
&lt;p&gt;
ITemplateHelpers in 1.7
&lt;/p&gt;
&lt;p&gt;
This allows most of the issues resolved.  Full removal of the IGenshiStream filter still neads some form of in template hooks but this is being looked at as a possiblity in ckan demo and can be considered out of scope for this ticket
&lt;/p&gt;
&lt;p&gt;
closing
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>