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.
 
 
scriptform/examples/output_types
Ferry Boender 5183c6386a Removed quotes around content disposition header in examples 7 years ago
..
README.md Output types example: Update README 9 years ago
job_large_bin.sh Removed quotes around content disposition header in examples 7 years ago
job_show_html.sh Deprecated the 'script_raw' option in favour of an output type specifier. 'escaped' will wrap output in PRE tags and esape the HTML entities in the output. 'html' will not and allows the script to include HTML markup. 'raw' is the former 'script_raw' option and directly streams output to the browser. 9 years ago
job_show_image.sh Deprecated the 'script_raw' option in favour of an output type specifier. 'escaped' will wrap output in PRE tags and esape the HTML entities in the output. 'html' will not and allows the script to include HTML markup. 'raw' is the former 'script_raw' option and directly streams output to the browser. 9 years ago
output.json Form definitions are now specified in a list instead of a dict. This preserves their order when listing the forms. 9 years ago
test.jpg Deprecated the 'script_raw' option in favour of an output type specifier. 'escaped' will wrap output in PRE tags and esape the HTML entities in the output. 'html' will not and allows the script to include HTML markup. 'raw' is the former 'script_raw' option and directly streams output to the browser. 9 years ago

README.md

ScriptForm output example

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.