Article Blog Refactorings with Symfony2, Doctrine 2 and Zeta Components
Since I have found Sphinx I am pretty impressed with Restructured Text and have now integrated that as writing language into my backend. Using Zeta Components excellent Document component I transform the written ReST to XHTML. I hooked into the Document rendering and it now supports using the Sphinx directive ".. code-block:: <language>" and runs the subsequent code through Geshi for highlighting. For example:
<?php echo "hello world with ReST and Zeta Components!";
My next plans for the blog bundle are:
- WebDav support for authoring. All articles will be named "slug.inputformat", for example "blog-refactorings-with-symfony2-doctrine2-zetacomponents.rst". For this I plan to write a custom backend for ezcWebdav.
- Making the Bundle simpler to re-use by others.
- More jQuery love to the backend.
- Trigger some events in the blog post cycle and hook a twitter + facebook notification for new posts in there.
Btw: This blog post is really just a bad excuse for me to test the ReST Editor in the backend. I hope you still enjoyed it ;)