Shape part
: shell
: core-parts
: shape-handler
: /modules/core/parts/services/shape-part.js
: https://github.com/DecentCMS/DecentCMS/blob/master/modules/core/parts/services/shape-part.js
ShapePart
The shape part handler creates shapes from raw content parts without the need for a specific handler.
ShapePart.handle(context, done)
Adds a shape to context.shape.temp.shapes for each part that has a 'shape'
property.
The specific type of shape to transform the part object into is specified
by the meta.shape property of the part.
Kind: static method of ShapePart
| Param | Type | Description |
|---|---|---|
| context | object |
The context object. |
| context.shape | object |
The shape to handle. Its meta.shape property is the name of the shape to create. If not found, the shape is looked for on the type. |
| context.scope | object |
The scope. |
| done | function |
The callback. |