diff options
Diffstat (limited to 'plugins/base/src/main/kotlin/renderers/DefaultRenderer.kt')
-rw-r--r-- | plugins/base/src/main/kotlin/renderers/DefaultRenderer.kt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins/base/src/main/kotlin/renderers/DefaultRenderer.kt b/plugins/base/src/main/kotlin/renderers/DefaultRenderer.kt index e0f80324..88dc92f0 100644 --- a/plugins/base/src/main/kotlin/renderers/DefaultRenderer.kt +++ b/plugins/base/src/main/kotlin/renderers/DefaultRenderer.kt @@ -97,8 +97,13 @@ abstract class DefaultRenderer<T>( builder: T, pageContext: ContentPage, sourceSetRestriction: Set<DisplaySourceSet>? = null - ) = - builder.buildContentNode(this, pageContext, sourceSetRestriction) + ) = builder.buildContentNode(this, pageContext, sourceSetRestriction) + + fun T.buildContentNode( + node: ContentNode, + pageContext: ContentPage, + sourceSetRestriction: DisplaySourceSet + ) = buildContentNode(node, pageContext, setOf(sourceSetRestriction)) open fun T.buildContentNode( node: ContentNode, |