Changeset 975

Show
Ignore:
Timestamp:
12/17/03 15:52:25
Author:
miyagawa
Message:

0.02

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Apache-JavaScript-DocumentWrite/trunk/Changes

    r923 r975  
    11Revision history for Perl extension Apache::JavaScript::DocumentWrite 
     2 
     30.02  Wed Dec 17 15:51:31 JST 2003 
     4        * Fixes document.writeln() is now issued on each lines. 
    25 
    360.01  Wed Sep 24 15:22:48 2003 
  • Apache-JavaScript-DocumentWrite/trunk/MANIFEST

    r923 r975  
    88t/conf/extra.conf.in 
    99t/htdocs/test.html 
     10META.yml                                 Module meta-data (added by MakeMaker) 
  • Apache-JavaScript-DocumentWrite/trunk/lib/Apache/JavaScript/DocumentWrite.pm

    r923 r975  
    33use strict; 
    44use vars qw($VERSION); 
    5 $VERSION = 0.01
     5$VERSION = 0.02
    66 
    77use Apache::Constants qw(:common); 
     
    2727    $r->send_http_header(); 
    2828    return OK if $r->header_only; 
    29     $r->print(q!document.writeln('!); 
    3029    while (<$fh>) { 
     30        chomp; 
    3131        s/\x27/&#x27;/g; # ' 
    32         print
     32        print "document.writeln('$_');\n"
    3333    } 
    34     $r->print(qq!');\n!); 
     34 
     35    return OK; 
    3536} 
    3637 
  • Apache-JavaScript-DocumentWrite/trunk/t/01_js.t

    r923 r975  
    1212{ 
    1313    my $body = GET_BODY "/test.html.js"; 
    14     ok($body, qr/document\.write/); 
     14    ok($body, qr/document\.writeln/); 
    1515    ok($body, qr/It&#x27;s a module/); 
    1616}