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

Inheriting Renderer breaks all named renderer calls #7

Open
ghost opened this issue Mar 20, 2016 · 1 comment
Open

Inheriting Renderer breaks all named renderer calls #7

ghost opened this issue Mar 20, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Mar 20, 2016

In my template I have :

{% block navbar %}
{{nav.top.render(renderer='simple')}}
{% endblock %}

And a very basic navbar:

def create_navbar():
    return Navbar(View('Index', 'index.index'))

I inherit and register a renderer:

class FormRenderer(Renderer):
    pass

register_renderer(app, 'form', FormRenderer)

Then, the call to the render(renderer='simple') does not create the navbar, whereas the call to render() will create it.

@ghost
Copy link
Author

ghost commented Mar 21, 2016

Maybe just a documentation bug and something I do not clearly understand ?
Havig a look with the debugger it seems that BootstrapRenderer is the default, not SimpleRenderer...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants