KnpLabs / KnpLastTweetsBundle

Symfony2 bundle to easily add a widget with the latest tweets of a Twitter user to a page.
http://knplabs.com/
MIT License
32 stars 15 forks source link

Error in example twig #30

Open henrypenny opened 9 years ago

henrypenny commented 9 years ago

I'm currently trying to test the following code:

{% extends 'AppBundle::base.html.twig' %}

{% block body %}
    {% render "KnpLastTweetsBundle:Twitter:lastTweets" with {'username': 'knplabs'} %}
{% endblock body %}

This is showing the following error:

Unexpected token "name" of value "with" ("end of statement block" expected) in src/AppBundle/Resources/views/Default/index.html.twig at line 4
weaverryan commented 8 years ago

Yep, the code example in the readme's uses the old render dynasty - we should update that.