Most of my files work like this: This is a typical web page for me.
[% PROCESS header.inc Title = "Sherwood.s Forests Links" Desc = "Sherwood's Forests Links to More Information" %] <DIV id="content"> [% FILTER multimarkdown %] # Shelterbelts Alberta Agriculture and Rural Development has a good overview on shelterbelts. This article is aimed at use for soil conservation, but the discussion of species is useful to anyone planning a shelterbelt. * [Field Shelterbelts for Soil Conservation][FSSC] * [Shelterbelt Varieties for Alberta][SVA] * [Shelterbelt Planning & Establishment][SPE] This one is the first in a chain of articles. The Canadian government started the Prairie Farm Reclamation Administration during the height of the dust bowl in the dirty thirties. PFRA has been providing trees and advice on using trees for shelterbelts for decades. While I don't agree with all of their recommendations, I concede that they have a lot more experience than I do. Probably another area where I'm not quite right. The main page has PFRA's application and contact information. The publications page has a ton of info about planning, planting, maintenance and uses for shelterbelts. * [PFRA Main Page][PFRA] * [Shelterbelt Program Publications][SPP] [FSSC]: http://www1.agric.gov.ab.ca/\$department/deptdocs.nsf/all/agdex2073 [SVA]: http://www1.agric.gov.ab.ca/\$department/deptdocs.nsf/all/agdex981 [SPE]: http://www.agr.gc.ca/eng/science-and-innovation/agricultural-practices/agroforestry/shelterbelt-planning-and-establishment/?id=1344636433852 [% PROCESS Copyright.inc %][% END %] </div> [% INCLUDE footer.inc %] ********************************* Now could you not just do this: [% PROCESS header.inc Title = "Sherwood.s Forests Links" Desc = "Sherwood's Forests Links to More Information" %] [% FILTER multimarkdown %] [% INCLUDE YOURFILE.md %] [% PROCESS Copyright.inc %][% END %] [% INCLUDE footer.inc %] Or use WRAP instead to process MD files? Regards Sherwood On 10 February 2017 at 11:41, Johan Vromans <[email protected]> wrote: > Thanks for all the feedback. > > It seems that Text::MultiMarkdown and Template::Plugin::MultiMarkdown are > sufficiently stable and useful. > > Usually I process templates using the ttree tool. I can configure it to > accept both .tt2 and .md templates, but is there a way to automatically run > the .md templates through the MultiMarkdown filter? > > -- Johan > > _______________________________________________ > 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
