Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
reST website
#1
i am wanting to set up a website which lets me store contents in reST format but delivers the content in HTML format for URLs that do not have any file extension on them. this means there must be reST processing to convert to HTML happening when the page is requested, or delivery of cached contents of a previous conversion if the cache is newer than the reST file. i want to simply be able to upload reST contents to change the site. files with extensions are in their indicated format and if requested are delivered unchanged. is their any documentation on how to set this up? can it be done with Apache without any CGI?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#2
The usual thing to do in Python is use a web framework (Flask, Bottle, Django, ...) with a WSGI server to serve the HTML. For Apache, there's mod_wsgi and there are other WSGI servers like Gunicorn. I'm sure there are libraries to convert reST to HTML. Have you searched PyPI, GitHub, etc.? Also, where are you hosting this out of interest?
Reply
#3
i don't want to build this, i want to find existing code, if it exists. i want to have the content sitting there ready to be converted on the fly. my sitting content is to be the reST content (and images, etc), no HTML. no pre-conversion.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#4
Maybe someone has built a web app that does what you want. Again, did you try searching GitHub? If they haven't, the libraries are undoubtedly there to enable you to build it.
Reply
#5
there is too much matching of REST(ful) API stuff going on.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#6
Did you try "RST" then? You're going to need to filter the results somehow.
Reply
#7
no, i did not try RST.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#8
OK then.
Reply
#9
lots of reStructuredText stuff. just documents and tutorials and no ready-to-go server software. it doesn't even have to be python. if i can get a string buffer of text processed rst->html i could add it to the server i already have. so i guess it's time to go read some docs.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020