Ticket #2254 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

better hooks for templates

Reported by: toby Owned by: toby
Priority: awaiting triage Milestone:
Component: ckan Keywords:
Cc: Repository: ckan
Theme: none

Description

TD look at issues and then email ckan-dev

meeting notes from 21-3-2012 general ideas non specific

Problem:

  • We want to remove the Transformer usage due to performance and its close tie to genshi
  • 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 ...)
  • Stacking versus overwriting on entry points

Options:

  • placeholders or helper methods
  • {{user _info}} {{sub_menu}} is this equivalent to <span class="insert-user-info"></span>
    • [xyz arguments] -> h.load_snippet('xyz', ...)
  • ${h.snipit()}

Change History

comment:1 Changed 2 years ago by toby

What do we want to be able to do?

what do we use the stream stuff for at the moment?

la la la

comment:2 Changed 2 years ago by toby

plan of attack

a) get removal of TDH from core - this will give a better idea of the issues involved

b) have a think

comment:3 Changed 2 years ago by toby

  • Status changed from new to closed
  • Resolution set to fixed

closing.

we have fanstatic integration in ckan.demo work

tdh is it's own extension

h.snippet is in 1.7

ITemplateHelpers in 1.7

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

closing

Note: See TracTickets for help on using tickets.