Originally created by Marcin Erdmann.
The following doesn't work (just a simplified example, not a real use case):
class SomeModule extends Module {
def destinationPage
static content = {
link(to: destinationPage) { $('a') }
}
}
class SomePage extends Page [
static content = {
myModule { module SomeModule, destinationPage: SomeOtherPage }
}
}
Currently module properties cannot be used in options passed to its content definitions. Getting it to work would be as simple as adding a propertyMissing() implementation to PageContentTemplateBuilder.
Originally created by Marcin Erdmann.
The following doesn't work (just a simplified example, not a real use case):
Currently module properties cannot be used in options passed to its content definitions. Getting it to work would be as simple as adding a
propertyMissing()implementation toPageContentTemplateBuilder.