rendering markdown/wiki/etc with dancer?
Hi, I'd like to store text blobs in a database, and render them to HTML with Dancer, with minimal formatting capabilities. It's for a small, self-contained project, so I was thinking something like markdown/reStructured/Wiki or similar. I only need very basic text formatting, nothing fancy. Any recommend Perl modules to do that? Thanks, -gordon
I'm using [Text::Markdown][1] and pretty happy with it. [1]: https://metacpan.org/module/Text::Markdown 2012/7/6 Assaf Gordon <gordon@cshl.edu>:
Hi,
I'd like to store text blobs in a database, and render them to HTML with Dancer, with minimal formatting capabilities.
It's for a small, self-contained project, so I was thinking something like markdown/reStructured/Wiki or similar. I only need very basic text formatting, nothing fancy.
Any recommend Perl modules to do that?
Thanks, -gordon
_______________________________________________ Dancer-users mailing list Dancer-users@perldancer.org http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
You can convert MD to HTML with this http://search.cpan.org/~bobtfish/Text-Markdown-1.000031/lib/Text/Markdown.pm or this http://search.cpan.org/~naoya/Template-Plugin-Markdown-0.02/lib/Template/Plu... And I presume you can store/retrieve it with this http://search.cpan.org/~bigpresh/Dancer-Plugin-Database-1.82/lib/Dancer/Plug... Is there anything else you needed to do to get it working? Daniel From: Assaf Gordon <gordon@cshl.edu> To: dancer-users <dancer-users@perldancer.org> Date: 06/07/2012 16:40 Subject: [Dancer-users] rendering markdown/wiki/etc with dancer? Sent by: dancer-users-bounces@perldancer.org Hi, I'd like to store text blobs in a database, and render them to HTML with Dancer, with minimal formatting capabilities. It's for a small, self-contained project, so I was thinking something like markdown/reStructured/Wiki or similar. I only need very basic text formatting, nothing fancy. Any recommend Perl modules to do that? Thanks, -gordon _______________________________________________ Dancer-users mailing list Dancer-users@perldancer.org http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
Thanks all for the quick responses! Daniel Perrett wrote, On 07/06/2012 11:55 AM:
You can convert MD to HTML with this
http://search.cpan.org/~bobtfish/Text-Markdown-1.000031/lib/Text/Markdown.pm or this http://search.cpan.org/~naoya/Template-Plugin-Markdown-0.02/lib/Template/Plu...
Text::Markdown + Template::Plugin::Markdown is exactly what I needed. -gordon
participants (3)
-
Assaf Gordon -
Daniel Perrett -
Иван Бессарабов