Last active
January 25, 2017 19:31
-
-
Save janit/9df40573eb45229351d5973efafbba91 to your computer and use it in GitHub Desktop.
index.html.twig from https://www.symfony.fi/entry/sharing-state-in-a-symfony-hybrid-app-with-twig-react-etc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h2>Hello from Twig</h2> | |
<table> | |
{% for apartment in appstate.apartments %} | |
<tr> | |
<td> | |
{{ apartment.streetaddress }}<br /> | |
{{ apartment.city }}<br /> | |
{{ apartment.zipcode }} | |
</td> | |
<td>{{ apartment.country }}</td> | |
<td>{{ apartment.buildyear }}</td> | |
</tr> | |
{% endfor %} | |
</table> | |
<div id="vue-app"></div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment