sconemad

technology, scones, nonsense

Loading...

Profiles

Twitter

GitHub

Launchpad

Subscribe to my RSS Feed

Admin

Context

A Context object holds the data for an individual page being rendered by SconeSite, in response to a user request.

SconeScript Interface

Properties

Name Type Descripion
request Request object The HTTP request
response Response object The HTTP response
session Session object The current HTTP Session
local_addr IPSocketAddr object The local (server) socket address
remote_addr IPSocketAddr object The remote (client) socket address
article Article object The current article being rendered
profile Profile object The SconeSite profile in use

Methods

print ( data : Any )
Write the data to the client.
print_esc ( data : Any )
Write the data to the client with HTML escaping.
print_json ( data : Any )
Write the data to the client in JSON (JavaScript Object Notation) format.
escape ( data : Any ) : String
Return an HTML-escaped version of the data.
process_article ( article : Article object, opts : Map )
Process the specified article.
The "opts" parameter allows additional processing options to be specified.
edit_article ( )
Writes the article source to the client in a form that can be edited.
template ( name : String )
Process the specified template.
abort ( )
Abort page rendering, returning an error to the client.
Updated on 2013-10-09 10:52:54 +0000 | Requested on 2020-10-27 12:53:48 +0000