Download
32 lines 1.4 KiBMarkdownModified 2020-08-20 raw

Hello minserv!

This is a snarky picture of Picard

This is a showcase of the on-the-fly cached Markdown-to-HTML (using pandoc) conversion of the minserv minimalist server. Here, you can see a paragraph of text!

And below it, another paragraph!

Demos

  • baz - a simple .html file (baz.html)
  • broken - an example of a 500 server error on a broken cgi page
  • favicon.ico - a favicon (should show up in the browser tab)
  • foo - a markdown file, converted to HTML using pandoc (foo.md)
  • .hidden - a hidden file (because it starts with a dot) (.hidden.md)
  • img.jpg - an image
  • index - the homepage, accessible at / or /index (index.md)
  • listing - a cgi script to give a full file listing
  • params - a demo of parameter parsing
  • params?x=123&y=xyz - same demo, showing GET params
  • phpdemo - a demo of a PHP cgi script (phpdemo.php)
  • sqrt - a demo of a Python cgi script (sqrt.py)
  • style.css - this site's CSS stylesheet
  • sub - a subdirectory (sub/index.md)
  • sub/foo - a subfile in a subdirectory (sub/foo.md)
  • tmp-cookie - a demo of cookies
  • xxx - a nonexistent file (400 Not Found)
  • voider - a demo of submitting a POST to a nonexistent file (voider.html)
1234567891011121314151617181920212223242526272829303132
% Hello World
% minserv
% May 24, 2020

Hello minserv!

![This is a snarky picture of Picard](img.jpg)

This is a showcase of the on-the-fly cached Markdown-to-HTML (using [pandoc](https://pandoc.org)) conversion of the minserv minimalist server. Here, you can see a paragraph of text!

And below it, another paragraph!

## Demos

- [baz](/baz) - a simple .html file (`baz.html`)
- [broken](/broken) - an example of a 500 server error on a broken cgi page
- [favicon.ico](/favicon.ico) - a favicon (should show up in the browser tab)
- [foo](/foo) - a markdown file, converted to HTML using pandoc (`foo.md`)
- [.hidden](/.hidden) - a hidden file (because it starts with a dot) (`.hidden.md`)
- [img.jpg](/img.jpg) - an image
- [index](/) - the homepage, accessible at `/` or `/index` (`index.md`)
- [listing](/listing) - a cgi script to give a full file listing
- [params](/params) - a demo of parameter parsing
- [params?x=123&y=xyz](/params?x=123&y=xyz) - same demo, showing GET params
- [phpdemo](/phpdemo) - a demo of a PHP cgi script (`phpdemo.php`)
- [sqrt](/sqrt?n=2) - a demo of a Python cgi script (`sqrt.py`)
- [style.css](/style.css) - this site's CSS stylesheet
- [sub](/sub) - a subdirectory (`sub/index.md`)
- [sub/foo](/sub/foo) - a subfile in a subdirectory (`sub/foo.md`)
- [tmp-cookie](/tmp-cookie) - a demo of cookies
- [xxx](/xxx) - a nonexistent file (400 Not Found)
- [voider](/voider) - a demo of submitting a POST to a nonexistent file (`voider.html`)