On Tue, Sep 21, 2010 at 7:34 AM, Joel Nothman
<[email protected]> wrote:
>
>> 2. the template construction "{{...}}" is parsed as regular text. I am
>> wondering whether we can use a dedicated object type to caption the
>> template type.
>
> template expansion is handled as a separate module in mwlib. parseString
> will only perform template expansion if it is passed a non-None wikidb
> object which contains the template markup.
>
thanks!
one question. do you mean "template expansion" as expanding the given
template to what we see on a page? what i think here is a simple task.
for example, "{{WM Help Guide}}" is now parsed into
mwlib.parser.node.Paragraph
u"{{WM Help Guide}}"
can we parse it into something like:
mwlib.parser.node.Template
tagname = u"WM Help Guide"
we can append template parameters there as well.
> ~J
>
> --
> 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.
>
>
--
Gang Liang
Life is beautiful!
--
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.