Roller Angel

Results 6 comments of Roller Angel

`pymongo` to the rescue! Just wrote a `pymongo_service.py` file and passed it the url. It was easily able to do a non async lookup of the page for me and...

Actually trying [render_partial](https://github.com/mikeckennedy/chameleon_partials) first to see if that solves it

Ok, so I have ``` html = chameleon_partials.render_partial("videos/partials/search_results.pt", videos={"videos": vm.videos}, search_text=vm.search_text) ``` working to render the HTML but now I have to figure out how to properly return that and...

`fastapi_chameleon.exceptions.FastAPIChameleonException: Invalid return type , we expected a dict or fastapi.Response as the return value.` That's what I get if I return the HTML object. I'm working on figuring out...

``` html = chameleon_partials.render_partial("videos/partials/search_results.pt", videos=vm.videos, search_text=vm.search_text) return fastapi.responses.HTMLResponse(status_code=status.HTTP_200_OK, content=html.html_text.encode('utf-8')) ``` This is what I have that's working. PyCharm is complaining about vm.videos. It says "Expected type 'dict', got 'list[Video] |...

After all this, now that I think about it, this is essentially a feature request. If there were something like `from fastapi.templating import Jinja2Templates` that works similar to the Jinja...