Limenius / ReactRenderer

Client and Server-side React rendering from PHP
MIT License
237 stars 37 forks source link

Adding a static renderer #20

Closed Garethp closed 5 years ago

Garethp commented 6 years ago

This addresses issue #19 by adding a StaticReactRenderer which wraps around an existing renderer to provide caching, and registers two new twig functions to call this

nacmartin commented 5 years ago

Sorry for the late reply, @Garethp, and thanks a lot.

I was thinking about implementing something similar to https://github.com/shakacode/react_on_rails/wiki/Caching , and this is similar. I thought about extending this make it more like the link. However, time is scarce :/, and I guess that it can be extended later as well.

It would be good to have some docs, will try to find time to write a section about this improvement.