You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.7 KiB
41 lines
1.7 KiB
{
|
|
"title": "Output type callback examples",
|
|
"forms": [
|
|
{
|
|
"name": "show_image",
|
|
"title": "Show an image",
|
|
"description": "Shows you an image. This is a 'raw' output type where the script writes a complete HTTP response to stdout, which is directly streamed to the browser by scriptform.",
|
|
"submit_title": "Show",
|
|
"script": "job_show_image.sh",
|
|
"output": "raw",
|
|
"fields": {}
|
|
},
|
|
{
|
|
"name": "large_bin",
|
|
"title": "Download large binary file",
|
|
"description": "Download a large (100mb) binary file. This demonstrated streaming directly to the client of large files.",
|
|
"submit_title": "Download",
|
|
"script": "job_large_bin.sh",
|
|
"output": "raw",
|
|
"fields": {}
|
|
},
|
|
{
|
|
"name": "some_html",
|
|
"title": "Show some HTML",
|
|
"description": "This is the 'html' output type, which allows HTML in the output of scripts. This can be useful to refer to another form after this form is completed, for instance.",
|
|
"submit_title": "Show HTML",
|
|
"script": "job_show_html.sh",
|
|
"output": "html",
|
|
"fields": {}
|
|
},
|
|
{
|
|
"name": "escaped",
|
|
"title": "Escaped contents (default)",
|
|
"description": "This is the 'escaped' output type. It is the default. The HTML entities in the output are escaped properly, and is wrapped in PRE elements.",
|
|
"submit_title": "Show HTML",
|
|
"script": "job_show_html.sh",
|
|
"output": "escaped",
|
|
"fields": {}
|
|
}
|
|
]
|
|
}
|
|
|