# packages/acs-core-docs/www/index.vuh set purlv [split [ad_conn path_info] /] set package_key [lindex $purlv 0] # replace the package key by "doc" (preserve presence of any trailing slash). set path_tail \ "doc[string range [ad_conn path_info] [string length $package_key] end]" if {![string compare [ad_conn path_info] "index.html"]} { rp_serve_abstract_file "[acs_root_dir]/packages/acs-core-docs/www/index.adp" } elseif {[file isdirectory "[acs_root_dir]/packages/$package_key/www/doc"]} { rp_serve_abstract_file "[acs_root_dir]/packages/$package_key/www/$path_tail" } else { rp_serve_abstract_file "[acs_root_dir]/packages/$package_key/$path_tail" }