Re: Multimarkdown
Sherwood Botsford <[email protected]> Tue, 28 Jan 2014 22:50:59 -0700
| Newsgroups | gmane.comp.lang.perl.modules.template-toolkit |
|---|---|
| Message-ID | <CAOX=2F-X_TMqg-dMnQCkkJNDwYi711UwUDJWCzL6fLfK4GwExA@mail.gmail.com> |
I think so. I've got Template::Plugin::MultiMarkdown installed and I call it in my templates [% USE String %] [% USE MultiMarkdown %] in header.inc Then [% FILTER multimarkdown %] just before the mmd part of the template. The new version of mmd lives in /usr/local/bin and reports version as ==> multimarkdown -v peg-multimarkdown version 3.6 portions Copyright (c) 2010-2012 Fletcher T. Penney. portions Copyright (c) 2011 Daniel Jalkut, MIT licensed. original Copyright (c) 2008-2009 John MacFarlane. License GPLv2+ or MIT. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Respectfully, Sherwood of Sherwood's Forests Sherwood Botsford Sherwood's Forests -- http://Sherwoods-Forests.com 780-848-2548 50042 Range Rd 31 Warburg, Alberta T0C 2T0 On 24 January 2014 17:30, Richard Thomas <[email protected]> wrote: > > On 25 Jan 2014, at 9:06 am, Sherwood Botsford <[email protected]> > wrote: > > > > > For years I've used an older version of multimarkdown. Now it is no > longer a perl program but a binary. > > > > I am not much of a programmer, and my limited programming is procedural > and not object oriented. > > > > I build my website with ttree and simple scripts. > > > > Would someone point me to a simple explanation of what I go through to > use an external program as a filter, and which files I need to edit. I've > found an example of one calling an external perl program, but it wasn't > clear to me if the modifcations were made in the template, in ttree or in > some other file. > > > > Thanks! > > > > Hi Sherwood, > > Are you using a plug-in to handle the MultiMarkdown parsing, or doing > something else? > > I use [Template::Plugin::MultiMarkdown]( > https://metacpan.org/pod/Template::Plugin::MultiMarkdown), which supports > the XS version of MM - in fact it uses it by default. > > And you use it like this in your template(s): > > [% USE MultiMarkdown %] > > ... > [% FILTER multimarkdown %] > > ### My Markdown. > > Here's my **MultiMarkdown** text. > > [% END %] > > ... > > Hope that's helpful. > > cheers > RET > _______________________________________________ > templates mailing list > [email protected] > http://mail.template-toolkit.org/mailman/listinfo/templates > _______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates