create new tag
, view all tags
I added a %FILTER% tag to take the content of a page and send it to a filter program to format the page. When you put the line:


in a page, the rest of the .txt file is used as the input to myprog and those lines are replaced by the output of myprog.

All I really wanted to do was to create an address book that could be formatted into a table, and the easiest way to implement it was a general filtering feature, where generating tables was one possible filter.

To see what the FilterTest.txt file attached looks like, see http://www.kionka.org/twiki/view/Test/FilterTest

-- DanKionka - 11 Feb 2001

Topic attachments
I Attachment History Action Size Date Who Comment
Texttxt AddressBook.txt   manage 0.6 K 2001-02-12 - 04:00 UnknownUser sample %FILTER% page using gentable for addresses
Texttxt FilterTest.txt   manage 0.1 K 2001-02-12 - 03:59 UnknownUser sample page with links to 2 %FILTER% tests
Texttxt GermanToBe.txt   manage 0.2 K 2001-02-12 - 04:01 UnknownUser simple %FILTER% page using gentable
Unknown file formatEXT gentable   manage 2.2 K 2001-02-12 - 03:58 UnknownUser sample filter -- generate a table
Perl source code filepm wiki.pm   manage 34.1 K 2001-02-12 - 03:55 UnknownUser new version of wiki.pm with %FILTER% tag
Unknown file formatdiff wiki.pm.diff   manage 1.5 K 2001-02-12 - 03:56 UnknownUser context diff to add %FILTER% to wiki.pm
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2001-09-29 - MikeMannix
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.