Created
May 3, 2012 12:15
-
-
Save coreymcmahon/2585270 to your computer and use it in GitHub Desktop.
Twig template for viewing blog posts - http://www.symfonycentral.com
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
{% if title == '' %} | |
{# | |
If the title is empty, the controller didn't pass us | |
what we were expecting :( | |
#} | |
Please provide a valid ID | |
{% else %} | |
<h1>{{ title|raw }}</h1> | |
<p>{{ body|raw }}</p> | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment