Coder Social home page Coder Social logo

Comments (3)

mbr avatar mbr commented on August 19, 2024

Unfortunately, it "works for me".

Can you do the following please (assuming you use virtualenvwrapper)?

  1. Create a new virtualenv (mkvirtualenv test-flask-boostrap).
  2. pip install flask-bootstrap
  3. grep title ~/.virtualenvs/bootstrap-test/lib/python2.7/site-packages/flask_bootstrap/templates/bootstrap/base.html

If that is present, you may be overriding the head head block or using an old/broken version?

from flask-bootstrap.

techstroke avatar techstroke commented on August 19, 2024

I installed it just yesterday so it's latest version and I just now saw that the title block is there in base.html in my virtualenv location so sorry for that ! and it also renders what I pass to it, but somehow it does not add the enclosing <title> </title> tags and it just echoes my app name I'm extending it like this -

{% block title %} {{ config.APP_NAME }} {% endblock title %}

so I had to manually encapsulate it in title tags , strange but happening and everything else is working like the metas and styles block , so there must be something wrong ...

from flask-bootstrap.

birdi3 avatar birdi3 commented on August 19, 2024

Apologies if this is not the appropriate place to leave this but similar behavior will also be seen if the {{super()}} is missing from the {% block head %}

(although this was not the case above)

from flask-bootstrap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.