src/scope.js
function Scope(site, page, params) {
	this.site = site
	this.page = page
	this.params = params || {}
	this.status = 200
	this._headers = {}
	this.locale = site.locales.default

	// Set default headers.
	this.header("Content-Type", "text/html; charset=utf-8")
	this.header("Connection", "close")
	this.header("Server", "Skira")
}
function Scope(site, page, params) {
	this.site = site
	this.page = page
	this.params = params || {}
	this.status = 200
	this._headers = {}
	this.locale = site.locales.default

	// Set default headers.
	this.header("Content-Type", "text/html; charset=utf-8")
	this.header("Connection", "close")
	this.header("Server", "Skira")
}
function Scope ( site , page , params ) { this . site = site this . page = page this . params = params || { } this . status = 200 this . _headers = { } this . locale = site . locales . default // Set default headers. this . header ( "Content-Type" , "text/html; charset=utf-8" ) this . header ( "Connection" , "close" ) this . header ( "Server" , "Skira" ) }
The state object are all variables made available to views and modules.

@param {object} site - global Skira site
@param {object} page - resolved page
@param {object} params - params parsed by the router
The state object are all variables made available to views and modules .