-
Notifications
You must be signed in to change notification settings - Fork 43
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
Html with images #29
Comments
there is function available: server.serve_file() so your code should work this way:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I am a beginner with programming but seems to me that there is no way to put image files in the html?
I tried this but it's not working:
@app.route('/images/<fn>')
async def images(req, resp, fn):
return render_template('/images/{}'.format(fn),
content_type='image/jpeg')
I was wondering if at this point there's just no way to implement it?
Thanks!
The text was updated successfully, but these errors were encountered: