# # Config file for saf_http_out for Safari # Copyright (c) 1999 by Barrie Slaymaker, rbs@telerama.com # # You may distribute under the terms of either the GNU General Public # License or the Artistic License, as specified in the README file. # # # # edit() gets called by saf_http_out after the file has been read in and # after all headers have been automatically generated. # It may change options (like file-type or mime-type), # headers or contents. # # $options is a ref to a hash containing command line options # $headers is a ref to an array of strings containing header lines in # the order they are to be printed, like "Content-type: text/html". # $contents is a ref to a scalar containing the entire contents of the file # to be modified. # use Safari::Edit::p4 ; *edit = *Safari::Edit::p4::edit ; # # Tell saf_http_out that we loaded correctly # 1 ;
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#4 | 187 | Barrie Slaymaker |
Added lots of options to saf_http_out to let the source file be used to figure out file type for determining filter and tool menus. Changed Makefiles to pass the original source file name in to saf_http_out. Added --PRE to saf_http_out. This is good for displaying plain text versions of HTML files. Improved the tool and filter logic in Safari::Edit::p4.pm to work with original file type to determine what makes sense for what kind of file. This really needs to be generalized in to a config file instead of being buried in a module. Increased usage of HTML::Entities::encode_entities instead of s///g . Moved Content-type: header to after the edit() routine call and now we pass and recover mime-type as an option. Added SAF_TARGET to environment under cgimake, Fixed updirectory counting, which broke when cgimake started parsing the project name from PATH_INFO. Removed all edit routines from saf_http_out.conf files. NOTE: we can now fall back to a single cgimake.conf file. Any day now. |
||
#3 | 168 | Barrie Slaymaker | Added YAPC paper, slides | ||
#2 | 165 | Barrie Slaymaker | Applied Greg KH's license patch. | ||
#1 | 162 | Barrie Slaymaker | First code & documentation checkin |