Ticket #154: OpenGuides.pm.json.patch

File OpenGuides.pm.json.patch, 0.5 kB (added by perigrin, 2 years ago)

patch to OpenGuides.pm for JSON support

  • OpenGuides.pm

    old new  
    569569            $template = "rdf_index.tt"; 
    570570            $conf{content_type} = "application/rdf+xml"; 
    571571        } 
     572        elsif ( $args{format} eq "json" ) { 
     573            $template = "plain_index.tt"; 
     574            $conf{content_type} = "text/javascript"; 
     575        }  
    572576        elsif ( $args{format} eq "plain" ) { 
    573577            $template = "plain_index.tt"; 
    574578            $conf{content_type} = "text/plain";