Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks - I would like to get ideas or information points on how to create a wiki page using perl script or any other scripting language?if anyone has already done it..can you please recommend which language is the best in acheiving this?

  • Comment on Ideas to Create a wiki page using a script

Replies are listed 'Best First'.
Re: Ideas to Create a wiki page using a script
by Anonymous Monk on Mar 18, 2012 at 00:47 UTC

    Any language is good enough for achieving this. There are dozens upon dozens of finished wikis in many many languages. Visit vikipedia List of wiki software and pick a wiki that has the features you want, that is written in a programming language you're familiar with, and then enhance/improve/use as you see fit

      Thanks.Where can I find sample scripts for creating wiki page in perl or python

        Thanks.Where can I find sample scripts for creating wiki page in perl or python

        Guess.

        Hint: its the place I just told you about, the place you thanked me for, just follow the links until you reach a download page, then download it.

        A reply falls below the community's threshold of quality. You may see it by logging in.
Re: Ideas to Create a wiki page using a script
by Anonymous Monk on Mar 18, 2012 at 09:30 UTC
    1. Learn how HTML, HTTP etc work, if you haven't already. (In particular, HTML forms)
    2. Figure out how your favourite library/framework abstracts it
    3. Ask the user for a page name. If the page does not exist, give him a blank text box to edit
      • When the user submits, save the web page onto the server (into a file or a database)
    4. If the user wishes to edit an already-existing page, give him a text box with the page's content pre-filled
      • Consider storing the previous revision(s) of the page when the user submits an edit
    5. Think about enhancing the syntax with a markup language such as Textile or Markdown.

And that's about it.