Output types example: Update README

pull/7/head
Ferry Boender 10 years ago
parent 110c237310
commit 640c67db43
  1. 15
      examples/output_types/README.md

@ -1,6 +1,11 @@
ScriptForm raw example
======================
ScriptForm output example
=========================
Raw callbacks can be used to obtain more control over what is sent to the
user's browser. For instance, you can stream contents to the browser, send
files, show images, etc.
Output tpyes determine how Scriptform handles the output from a callback. The
options are: `escaped` (default), `html` and `raw`. The `escaped` option wraps
the output of the callback in PRE tags and escapes any HTML entities. The
`html` option doesn't, which lets the script include HTML formatting in the
output. The `raw` option directly streams the output of the script to the
browser. This allows you to stream images, binary files, etc directly to the
browser. The script should include a full HTTP response including appropriate
headers.

Loading…
Cancel
Save