Description
A Block is used to prevent a section of an HTML template from being renderred.
That is, a Block is allowed a body, but never renders it. Instead, an
RenderBlock component is used to insert the body of
the block.
Block and RenderBlock are used to build a certain
class of complicated component that can't be assembled using the normal
wrapping containment. Such a complex component would have two or more sections
that need to be supplied by the containing page (or component).
Blocks can be used to pass arbitrary blocks of HTML and components as
parameters to a component.
The runtime property inserter gives access to the
component, typically an RenderBlock
that inserted the body of the Block. This allows for access to
informal parameters of the InsertBlock, which is a useful (if
roundabout) way to pass parameters to the components inside a Block
from the container that inserts the Block.
|