Wed May 21 01:47:27 2003 (01)
Update of /data/cvs/boa/PurpleWiki/PurpleWiki/Parser
In directory douge.blueoxen.net:/tmp/cvs-serv14137/PurpleWiki/Parser (02)
Modified Files:
Tag: nidGen
WikiText.pm
Log Message: (03)
Okay, all that earlier merging and stuff was so I could justify this: (04)
http://www.burningchrome.com:8000/~cdent/wiki.cgi?FoodTest (05)
If you look at edit text on that page, you'll see how it works. (06)
This is prototype in the extreme. It is very slow because it is loading
web pages and parsing them to get at the nodes. So the FoodTest page
is loading three other pages _every_time_it_loads. (07)
More in a separate message. (08)
Details of changes: (09)
- adds PurpleWiki::Transclusion which is the code for sucking
text from web pages when provided with a nid. It is crufty, using
some hardcoded data files. It is responsible for the whole string
that is brought in, it is called from the transclusion main handler
in the wikihtml eventhandler. all happens in main so state doesn't
have to be maintained
- adjusts the Parser/WikiText to accept \[t[A-Z0-9]+\] as an inline
node. we'll need to make this configurable
- make changes in the eventhandlers for text, wikitext, wikihtml
and debug. only wikitext and wikihtml have been tested at this point (010)
transclusion should probably be a configurable parameter like
wikiwords and freelinks. (011)
--
This message is archived at: (012)
http://purplewiki.blueoxen.net/forums/cgi-bin/mesg.cgi?a=devel&i=20030521084727.AA717165E4C@douge.blueoxen.net (013)
|