Skip to content

Commit

Permalink
Fixed issues found by markdownlint
Browse files Browse the repository at this point in the history
  • Loading branch information
genius257 authored Jun 11, 2024
1 parent 75192a2 commit 1e0a4b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/component.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,18 @@ All components have a reserved property named `"trim"`. It is a boolean value, i
The component render output is given via the `render` method.

The method can give output via:

* A return statement.
* Writing to the output buffer, for example via the echo function.

If both a return and content in the output buffer is given, the final render will be the a concatinated string, with output buffer first, return output second.

#### Stringable

casting this class to string, will result in the same as making the View class render the component.

#### Nested render

The component MAY return or output html with another component tag.

That component tag will also be processed in the same view render call, until all component tags are processed.
Expand Down
2 changes: 2 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# View documentation

## Introduction

View is a simple solution for bringing JSX elment like syntax into PHP.
Expand Down

0 comments on commit 1e0a4b0

Please sign in to comment.