cleanup, docs
This commit is contained in:
@@ -37,19 +37,6 @@ When you call `component(":NAME", props, context)` or `component_render(":NAME",
|
||||
|
||||
## Example
|
||||
|
||||
```cpp
|
||||
COMPONENT(Request& context)
|
||||
{
|
||||
<><section><?: component(":BODY", context.props, context) ?></section></>
|
||||
}
|
||||
|
||||
COMPONENT:BODY(Request& context)
|
||||
{
|
||||
<><p><?= context.props["body"] ?></p></>
|
||||
}
|
||||
```
|
||||
|
||||
## Related Concepts
|
||||
|
||||
- PHP: view partials, reusable include files, small template helpers, and server-side component-like rendering patterns
|
||||
- JavaScript / Node.js: reusable component functions, React or Vue components, and server-rendered partials
|
||||
:example
|
||||
print("COMPONENT is a unit directive; place it at top level in a .uce unit.\n");
|
||||
|
||||
Reference in New Issue
Block a user