[Helma-user] Deep Macro Invocation
Anton Pirker
helma at gmiatlich.net
Tue Sep 25 10:02:05 CEST 2007
Hi Michi!
Michael Platzer schrieb:
> Hi Anton,
>
> Try setting
> allowDeepMacros = true
> in your app.properties, and things should work as expected.
after implementing a basic getMacroHandler() in HopObject like walter
proposed:
----
HopObject/functions.js
function getMacroHandler(name) {
return this[name];
}
----
now it is working! i also discovered that setting allowDeepMacros in
app.properties is not necessary at all. just a
getMacroHandler()-function is enough.
the documentation to this feature [1] is not quite clear in my opinion.
i thought that getMacroHandler() is already existing somewhere deep in
Helma. i have not realized that i should write this method...
cheers,
Anton
[1] http://dev.helma.org/wiki/New+Skin+Features+in+Helma+1.6/#Deepmacros
More information about the Helma-user
mailing list