On Tue, 3 Apr 2012, Jeremy Ruston wrote:

I'm tending towards the idea of being able to register a link
generator function with the store object. The function would be passed
the parameters of the link macro and return a Renderer.ElementNode
representing the generated <a> tag. It might be less brittle if the
function were passed a default <a> element which it could modify,
rather than generating one from scratch. Does that sound reasonable?

Are you thinking that there would be a mapping of link types to
various functions (which return the ElementNode) or something within a
single function that handles different types of links?

The former seems in keeping with the usual patterns.

So a "formatter" would result in a link macro of type X. Macro
processing would say "oh yeah, that's X, funcX deals with that".

--
Chris Dent                                   http://burningchrome.com/
                                [...]

--
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" 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/tiddlywikidev?hl=en.

Reply via email to