File: makeurl.rvt

package info (click to toggle)
libapache2-mod-rivet 2.3.3-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 5,156 kB
  • ctags: 1,093
  • sloc: xml: 7,696; tcl: 6,939; ansic: 5,682; sh: 4,862; makefile: 199; sql: 91; lisp: 78
file content (25 lines) | stat: -rw-r--r-- 378 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?

    if {[::rivet::var exists urltype]} {

        switch [::rivet::var get urltype] {

            absolute {
# makeurl-1.1
                puts [::rivet::makeurl /foo]
            }

            relative {
# makeurl-1.2
                puts [::rivet::makeurl foo/]

            }
            
        }
    } else {

# makeurl-1.3
        puts [::rivet::makeurl]

    }
?>