Got rid of todo.
This commit is contained in:
parent
52145cf013
commit
8967338fae
@ -242,9 +242,6 @@ class DefaultStaticSiteGenerator implements StaticSiteGenerator {
|
|||||||
if (pageView instanceof WvcPageView) {
|
if (pageView instanceof WvcPageView) {
|
||||||
pageView.context = new DefaultWebViewComponentContext().tap {
|
pageView.context = new DefaultWebViewComponentContext().tap {
|
||||||
configureRootScope {
|
configureRootScope {
|
||||||
// TODO: scan components in same package, add them to the scope with factories which
|
|
||||||
// use the object factory to construct the component
|
|
||||||
// also: automatically set template like below for pages
|
|
||||||
allWvc.each { wvcClass ->
|
allWvc.each { wvcClass ->
|
||||||
//noinspection GroovyAssignabilityCheck
|
//noinspection GroovyAssignabilityCheck
|
||||||
add(wvcClass, ComponentFactories.ofClosureClassType(wvcClass) { Map attr, Object[] args ->
|
add(wvcClass, ComponentFactories.ofClosureClassType(wvcClass) { Map attr, Object[] args ->
|
||||||
|
Loading…
Reference in New Issue
Block a user