template::util::url_to_file (public)

 template::util::url_to_file url [ reference_url ]

Defined in packages/acs-templating/tcl/util-procs.tcl

Resolve a URL into an absolute file path.

Parameters:
url (required)
reference_url (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 ad_parse_template ad_parse_template (public) template::util::url_to_file template::util::url_to_file ad_parse_template->template::util::url_to_file ad_return_template ad_return_template (public) ad_return_template->template::util::url_to_file packages/acs-templating/tcl/tag-init.tcl packages/acs-templating/ tcl/tag-init.tcl packages/acs-templating/tcl/tag-init.tcl->template::util::url_to_file packages/faq/www/try.tcl packages/faq/ www/try.tcl packages/faq/www/try.tcl->template::util::url_to_file template::adp_include template::adp_include (public) template::adp_include->template::util::url_to_file

Testcases:
No testcase defined.
Source code:

    if { [string index $url 0] ne "/" } {
        set path [file dirname $reference_url]/$url
    } else {
        set path $::acs::rootdir/$url
    }

    return [ns_normalizepath $path]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: