Lex Great idea. Your way is definitely the correct way to doing it. I appreciate you taking the time to respond. This will allow me to load a more sophisticated wiki parse on my cherrypy server. The server would hold the wiki files, convert them to html using the format.
[[page1 some title]] => <span id = "page1">some title</span> The pyjamas application would then need to parse out all the spans and ids and insert click listeners. The ids would be used as parameters in a page request. I recently updated anchor.py on the example page. I will add another example that accomplishes this parsing. I seems like the correct way for the server to send back hyperlinked information and should have a working example. On Saturday, February 16, 2013 4:22:15 PM UTC-5, Lex Berezhny wrote: > > It would make a lot more sense to convert the wiki markup to HTML each > time the wiki is edited/saved on the server side. I believe this is how > most wikis work. > > When you send the HTML down you can change the onclick for the hyper links > and have your code called instead of having browser follow the link. > > - lex > > > On Sat, Feb 16, 2013 at 12:06 PM, Grant Pitel <[email protected]<javascript:> > > wrote: > >> All, >> >> I was want to release simple wiki parser on the examples page, but I am >> still a newbie on all levels, and I wanted to run it by the community and >> get some recommendations. >> >> I felt pyjs needed some way of getting static documents, with hyperlinks, >> stored on the server to the client. Basically my example would simulate a >> service request, the server returns raw wiki markup text, and html gets >> created on the client side. I converted wiki->html on the client side >> because I need to compose hyperlinks with click listeners that generate a >> service requests without redirection. Standard linking would leave my >> application. My questions are listed below: >> >> 1. Is what I am doing insane, is there an easier way. >> 2. Is there a recommended python wiki parsing library already >> available that will be importable to pyjs. The one I have written now >> handles >> ==Headings== >> **lists >> [[link link title] >> <p>standard html</p> >> >> Thanks for the advice. >> >> -- >> >> --- >> You received this message because you are subscribed to the Google Groups >> "Pyjs.org Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- --- You received this message because you are subscribed to the Google Groups "Pyjs.org Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
