Unit 3 / Package Manager (2)
::xo::Package provides a simple page-contract interface, similar to ad_page_contract
- Page contracts (see ad page contract) negotiate both a required and provided feature set between the template (*.adp) and the script (*.tcl) or the request and the script, respectively.
- The required features include expected request parameters, optional validation, default values etc.
- The provided feature include properties, i.e. variable that will be accessible within the scope of the affiliated template.