Andrew Ford <[email protected]>  is hereby nominated as a Prince
of the Realm.

His multimarkdown plugin works like a charm.


Thanks.

(If I can't program perl at the level of the guru's on this list, I
can at least express my gratitude.)

While I've got everyone's attention with Andrew's wonderfulness

It occurs to me that another cool filter for TT would be the ability
to use  w3c's html tidy as a filter.

It's really hard to write templates that have clean looking output
html, AND has clean properly indented, commented tt2 code
So far I can have blobs (excessive chomping.  HTML that looks like
curdled milk.) or if I have minimal space chomping, I have tags
sprinkled over whitespace like dandelions on a lawn.

Being able to automatically run the code through tidy could do a lot
to fix this.

More generically a filter that takes an arbitrary external command.
With the overhead of starting an additional process this allows
anything that reads from standard in, and writes to standard out to be
used without creating a plugin and provider module for it.  This also
means that the command doesn't need to be written in perl, nor even
run on your local machine.

There is a plugin called pipe, but it doesn't seem to take arbitrary
external commands.

-- 
Sherwood Botsford
Sherwood's Forests
Warburg, Alberta T0C 2T0
http://www.sherwoods-forests.com
780-848-2548

_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to