parent
110c237310
commit
640c67db43
@ -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 |
Output tpyes determine how Scriptform handles the output from a callback. The |
||||||
user's browser. For instance, you can stream contents to the browser, send |
options are: `escaped` (default), `html` and `raw`. The `escaped` option wraps |
||||||
files, show images, etc. |
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…
Reference in new issue