Tim Clare <[email protected]> writes:

> My first question is on my wiki I have some custom tags that I have
> built. They output a hyperlink, is there an easy way to add support
> for these tags to the renderer?

have a look at the poem tag in mwlib:

,----
| [py26] [git:master] ~/code/ % ack poem    
| README.html
| 407:<li>move the poem tag implementation to mwlib.refine.core and make it 
expand templates</li>
| 
| tests/test_treecleaner.py
| 334:    raw =u"""''„Drei Affen, zehn Minuten.“'' <ref>Dilbert writes a poem 
and presents it to Dogbert:<poem style>
| 336:''DILBERT: But what about my poem?''
| 337:''DOGBERT: Three monkeys, ten minutes.“''</poem></ref>
| 
| tests/test_tagext.py
| 49:def test_poem():
| 51:<poem>
| 56:</poem>
| 
| mwlib/refine/core.py
| 814:    def create_poem(self, name, vlist, inner, xopts):
| 831:        return T(type=T.t_complex_tag, tagname="poem", vlist=vlist, 
children=children)
| 
| mwlib/uniq.py
| 63:            tags = set("nowiki math imagemap gallery source pre ref 
timeline poem".split())
`----

-- 
You received this message because you are subscribed to the Google Groups 
"mwlib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/mwlib?hl=en.

Reply via email to