News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Anna Filina's Blog:
Integrating Markdown with Symfony
April 26, 2011 @ 10:56:46

Anna Filina has a new post showing how you can integrate a documentation format that's become a bit more popular recently (due partially to its increased use on github), Markdown, into a Symfony application.

I needed to create a number of static help pages in three languages in a Symfony 1.4 application. Using the XLIFF translation files seemed absurd, since I knew that I will include a lot of HTML. [...] And so, I decided to create partials using the following structure: _docs/{lang}/{title}.php. This method would organize my pages nicely and will only load what is needed. Then, I remembered that we were planning to hire a technical writer for the rest of the manual. I wanted to make his life as easy as possible and the source files easy to read for everyone.

She found the solution in Markdown and has included a step-by-step guide to getting it integrated with Symfony using this parser. It's loaded as a helper and used to parse the partial view's content. You can find a quick guide to Markdown on the Daring Fireball website.

0 comments voice your opinion now!
markdown symfony framework helper view


blog comments powered by Disqus

Similar Posts

Paul Jones\' Blog: Solar 0.18.0 released, and more about testing

Ivo Jansch's Blog: Book Review: php|a's Guide to Programming with Zend Framework

Pádraic Brady's Blog: Complex Views with the Zend Framework - Part 3: Composite View Pattern

Phil Sturgeon's Blog: Getting involved with CodeIgniter

International PHP Magazine: Which of the Following Ensures Smooth Implementation of PHP Sessions?


Community Events





Don't see your event here?
Let us know!


community deployment language api framework tips laravel install symfony podcast release introduction zendserver interview series update opinion list library package

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework