Helma Project Weblog |
Wednesday, 27. March 2002
nesting macros
tobi
16:14h
i did not know where to put this, whether it's an antville or helma related issue, so i put it here in the helma project weblog at antville. would it be possible to nest macros inside macros the way <% this.macroName attribute="<% this.anotherMacro %>" %> ? if this should cause troubles, how about an alternative that let's us define at least one level of nested macros, e.g. <% this.macroName attribute_macro="this.anotherMacro" %> with rendering the attribute name "attribute_macro" to "attribute" only and its value to the result of the function anotherMacro_macro()? [that means: param.attribute = anotherMacro_macro();] it should be possible to implement any of both ideas as javascript code (eg. in antville) but i assume they perform better when built-in in helma... i think i will try out the javascript thing. but how do you consider this conecpt, generally?
|