Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function to render html #112

Closed
amirbtb opened this issue Dec 10, 2021 · 3 comments
Closed

Function to render html #112

amirbtb opened this issue Dec 10, 2021 · 3 comments
Labels
question Further information is requested stale Issue has become stale (no activity for 60 days)

Comments

@amirbtb
Copy link

amirbtb commented Dec 10, 2021

Hello,

I would like to render a static HTML file and/or a Jinja Template as a response to a Cloud Function using the @app.route('/') decorator. Is there an easy way to do it ?

Thanks !

@anovis
Copy link
Collaborator

anovis commented Dec 10, 2021

I believe it should be doable using the Response class, which is simply a flask response object.

This article has some good information on rendering a jinja template in chalice, which is what goblet is based on.

Let me know if this is helpful, or if there are any changes I would need to add.

@anovis anovis added the question Further information is requested label Dec 10, 2021
@amirbtb
Copy link
Author

amirbtb commented Dec 12, 2021

I'm blocked by #113

@stale
Copy link

stale bot commented Feb 10, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Issue has become stale (no activity for 60 days) label Feb 10, 2022
@stale stale bot closed this as completed Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested stale Issue has become stale (no activity for 60 days)
Projects
None yet
Development

No branches or pull requests

2 participants