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):
- 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