Helma logo
helma.org » Home > Stories > res.data

res.data

Object providing space for custom output data.

This object can be used to attach any property propertyName onto it to make it available in a skin via the response macro.

Syntax
res.data.propertyName

Example
File root/main.skin:
<html>
<head>
  <title><% response.title %></title>
</head>
<body>
<% response.body %>
</body>
</html>


File root/main.hac:
res.data.title = "Test";
res.data.body = "Hello, World!";
root.renderSkin("main");

<html>
<head>
  <title>Test</title>
</head>
<body>
Hello, World!
</body>
</html>


... comment


Page last modified on 2001-11-27 14:40 by tobi