// a simple web app/module
importFromModule('helma.skin', 'render');

function main_action() {
    var context = {
        title: 'Module Demo',
        href: href
    };
    render('skins/modules.html', context);
}

// module scopes automatically support JSAdapter syntax!
function __get__(name) {
    if (name == 'href') {
        return req.path;
    } else {
        return this[name];
    }
}
// a simple web app/module
importFromModule('helma.skin', 'render');

function main_action() {
    var context = {
        title: 'Module Demo',
        href: req.path
    };
    render('skins/modules.html', context);
}

Fix demo app: modules no longer act as JSAdapters
Fix demo app: modules no longer act as JSAdapters

git-svn-id: fac99be8204c57f0935f741ea919b5bf0077cdf6@9147 688a9155-6ab5-4160-a077-9df41f55a9e9
