in reply to Perlmonks Code Proxy
Everything allows you to create different "htmlpages" for types, so we created a "document downloadcode page", with no nested containers around it:
[% my $text = $$NODE{doctext}; my $str; while($text=~/<CODE>((.|\n)*?)<\/CODE>/ig) { my $code = $1; $str.=$code."\n\n\n"; } $str; %]
All that was left was to hack in a change of content type to "application/octet" in the core, and viola!
|
---|
Replies are listed 'Best First'. | |
---|---|
RE: Re: Perlmonks Code Proxy
by merlyn (Sage) on Aug 19, 2000 at 19:58 UTC | |
RE: Re: Perlmonks Code Proxy
by vroom (His Eminence) on Aug 19, 2000 at 22:06 UTC | |
by merlyn (Sage) on Aug 19, 2000 at 23:00 UTC |