Instance Method
build(withDynamicBuildDependency:dynamicComponentDependency:)
Builds a new napkin instance and returns both the component and router.
final func build(withDynamicBuildDependency dynamicBuildDependency: DynamicBuildDependency, dynamicComponentDependency: DynamicComponentDependency) -> (Component, Router)
Parameters
- dynamicBuildDependency
Runtime dependencies needed for building the napkin.
- dynamicComponentDependency
Runtime dependencies needed for creating the component.
Return Value
A tuple containing the component and router.
Discussion
Use this method when you need access to the component after building, for example to use it as a dependency for sibling napkins.