From: Mike Taylor Date: Tue, 5 Dec 2006 12:24:51 +0000 (+0000) Subject: Use HTML::Mason-level comment rather than HTML-level to remove unusued X-Git-Tag: CPAN-v1.02~719 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=a90af75a89ed621be485b41bc12ef2797874342d;p=irspy-moved-to-github.git Use HTML::Mason-level comment rather than HTML-level to remove unusued JavaScript. Rather than including the single named component, include all components on the path leading to it, allowing directory-level text. Font-size is no longer small. Heading is styled. --- diff --git a/web/htdocs/help.html b/web/htdocs/help.html index 1ebf917..8793011 100644 --- a/web/htdocs/help.html +++ b/web/htdocs/help.html @@ -1,4 +1,4 @@ -%# $Id: help.html,v 1.2 2006-12-04 15:41:23 mike Exp $ +%# $Id: help.html,v 1.3 2006-12-05 12:24:51 mike Exp $ <%args> $help @@ -35,7 +35,7 @@ asks and answers the question: Not that I know of, other than using javascript. -Nice one, W3C! Way to improve portability! +Nice one, W3C! Way to improve cross-browser portability! IRSpy help: <% $help %>

IRSpy help: <% $help %>

-% $m->comp("/help/$help.html"); +% my @path = split /\//, $help; +% foreach my $i (0 .. $#path) { +% $m->comp("/help/" . join("/", @path[0..$#path-$i]) . ".html"); +% }