template::util::master_to_file (public)

 template::util::master_to_file url [ reference_url ]

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

Resolve a URL into an absolute file path, but respect styled master configuration for named masters (e.g. acs-templating/resources/masters/... containing 2cols.adp)

Parameters:
url (required)
reference_url (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 packages/acs-templating/tcl/tag-init.tcl packages/acs-templating/ tcl/tag-init.tcl template::util::master_to_file template::util::master_to_file packages/acs-templating/tcl/tag-init.tcl->template::util::master_to_file template::resource_path template::resource_path (public) template::util::master_to_file->template::resource_path

Testcases:
No testcase defined.
Source code:
    if { [string index $url 0] ne "/" } {
        set master_stub [template::resource_path -type masters -style $url]

        if {[file exists $master_stub.adp]} {
            set path $master_stub
        } else {
            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: