xp-forge / frontend

Web frontends
1 stars 1 forks source link

Add `View::empty()` to create a view which will not be rendered #45

Closed thekid closed 9 months ago

thekid commented 9 months ago

Example:

// Return an empty response with the "No content" status code
View::empty()->status(204);

See https://youtu.be/akd7u69k27k?t=2165