Edgewall Software

Ticket #395 (closed enhancement: wontfix)

Opened 4 years ago

Last modified 16 months ago

Add a system for plugging in additional directives

Reported by: Carsten Klein <carsten.klein@…> Owned by: cmlenz
Priority: major Milestone:
Component: General Version: 0.6
Keywords: Pluggable Directives Cc:

Description

See wiki page WorkInProgress/PluggableDirectivesLibraries for more information on this.

Attachments

Change History

Changed 4 years ago by anonymous

  • status changed from new to closed
  • resolution set to wontfix

I reviewed the existing genshi code and even managed to implement a few tags that could just be plugged in and used.

However, the system for arbitrating the tags and also for prioritizing them, that is currently implemented into genshi, makes it hard to provide a unified approach.

This is mainly due to the fact, that genshi markup can be used as both elements and namespaced attributes to existing other elements.

In order to become independent of the order of tags in a given document, one must rewrite genshi so that it gets rid of genshi markup that utilizes attributes for performing genshi magic.

E.g.

<div py:for="x in y" py:if="test">
  ...
</div>

would have to be removed from the templating language, as py:for and py:if are order dependent.

Instead, everything would have to be noted just like

<py:for...>
  <py:if...>
  ...
  </py:if>
</py:for>

for which nearly all existing templates would have to be reimplemented in small to large parts.

Closing as wontfix, as the benefit would be too small since a major rewrite of genshi would be required. And, given the current feelings to genshi as a whole, and whether trac should continue supporting it, it seems even more unlike that such a thing will happen.

Changed 4 years ago by carsten.klein@…

The issue was closed by me of course.

Changed 3 years ago by Carsten Klein <carsten.klein@…>

The code initially developed for this can be found under  git://github.com/axnsoftware/genshi-bugs-n-features.git in the genshi-issue-395 branch.

Add/Change #395 (Add a system for plugging in additional directives)

Author


E-mail address and user name can be saved in the Preferences.


Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.