symfony-cmf/BlogBundle — pull request #39 by dbu (2013-09-25 09:03:14+00:00)
Title: add rdf mapping for blog posts

| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | -
| License | MIT
| Doc PR | -

this is a simple mapping for the blog post.

we could also change the template, but that would create a dependency on CreateBundle. this bundle probably should not provide a template anyways - the other bundles don't.

```
+{% createphp post as="rdf" %}
+

-

{{ post.title }}

+ {{ rdf.title|raw }}

@@ -25,9 +28,11 @@

-

- {{ post.body|nl2br|raw }}
+

+ {{ createphp_content(rdf.body)|nl2br|raw }}

+{% endcreatephp %}
```