odan / slim4-skeleton

A Slim 4 Skeleton
https://odan.github.io/slim4-skeleton/
MIT License
439 stars 80 forks source link

Missing TemplateRenderer/HtmlRenderer #114

Closed gRegorLove closed 1 year ago

gRegorLove commented 1 year ago

The documentation refers to TemplateRenderer (or HtmlRenderer in the code snippet), but TemplateRenderer looks like it was removed in this commit.

Is there a newer, preferred method for default HTML rendering with the skeleton, or is it meant for devs to implement as needed?

odan commented 1 year ago

Thanks for reporting. The documentation was not updated accordingly. The section in the docs has just been removed.

The TemplateRenderer has been removed to make this skeleton project more agnostic / universal, as an API usually does not need an HTML template engine.

Is there a newer, preferred method for default HTML rendering with the skeleton, or is it meant for devs to implement as needed?

This style / method is still the preferred way for HTML rendering, but you need to add it to your project if needed. For example, when you want to provide a Swagger documentation, or you want to build a frontend based on this skeleton, the TemplateRenderer would be still the recommended way.

odan commented 1 year ago

I'm closing this as "solved."