Created
January 8, 2013 22:48
-
-
Save sjimenez77/4488758 to your computer and use it in GitHub Desktop.
TWIG: Symfony2: Plantilla base para RSS
This file contains hidden or 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
<?xml version="1.0"?> | |
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> | |
<channel> | |
<title>{% block title %}{% endblock %}</title> | |
<link>{% block url %}{% endblock %}</link> | |
<description>{% block descripcion %}{% endblock %}</description> | |
<language>{% block idioma %} | |
{{ app.request.locale }} | |
{% endblock %}</language> | |
<pubDate>{% block fechaPublicacion %} | |
{{ 'now'|date('r') }} | |
{% endblock %}</pubDate> | |
<lastBuildDate>{% block fechaCreacion %} | |
{{ 'now'|date('r') }} | |
{% endblock %}</lastBuildDate> | |
<generator>Symfony2</generator> | |
<atom:link href="{% block self %}{% endblock %}" | |
rel="self" type="application/rss+xml" /> | |
{% block items %}{% endblock %} | |
</channel> | |
</rss> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment