-
Notifications
You must be signed in to change notification settings - Fork 40
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
Add another img #12
Comments
Looking at the generated html of the basic example, the absolute file path is used. Support for relative paths or an example showing how that can be done would be great! |
A related question: attribute interpolation doesn't seem to work with
where |
I defined |
Great, I'm glad it works now! |
Hi everyone. I want to change the logo from the basic example but I can't get it right, It looks empty without any image.
This is my syntax for adding a new image, I have it in a folder and at the same folder but I can't get it right and I don't know why.
img(style="width:400px; display:block; margin:0 auto;" src="{{ img }}")
img(style="width:400px; display:block; margin:0 auto;" src="/static/avocado.png")
img(style="width:400px; display:block; margin:0 auto;" src="/static/avocado.jpg")
img(style="width:400px; display:block; margin:0 auto;" src="./avocado.png")
img(style="width:400px; display:block; margin:0 auto;" src="./avocado.jpg")
None of them above is showing the image.
Thank you a lot.
The text was updated successfully, but these errors were encountered: