-
Notifications
You must be signed in to change notification settings - Fork 37
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
Feature view img #5
base: master
Are you sure you want to change the base?
Conversation
@mbr Hello there? |
Hey, I haven't forgotten this pull request and am looking into it. |
I'm willing to merge this for now, but cannot guarantee that it stays; but I'll try to make it work next time I'm hacking on Flask-Nav. One of the issues I've had with this is that there are essentially two sets of An alternative I've been considering has been passing around dominate-tags, this would mean passing in the But, as I said above, I'll merge this, provided you drop the |
Thanks for your advice and your great work! |
Hey @nypgand1 , Thanks for your code, I was also looking at how to implement a logo in my Navbar.
where i think it should be
The following should be sufficient: def visit_ViewImg(self, node):
a = tags.a(href=node.get_url(), title=node.text)
a.add(tags.img(src=node.img_src, alt=node.img_alt))
return a |
Hello, |
New element "ViewImg" for link with a img tag.
Used by issue #2 and template "Logo Nav" of Start Bootstrap.
http://startbootstrap.com/template-overviews/logo-nav/