Whitebeam Template Reference Documentation

Site Map
 
Home
 
Application Guide
Reference
  Installation
  Configuration
  XML Markup
  JavaScript Classes
  ROM
  Templates
  Environment
  Dev Process
  Tools
  External Links
  Example libraries
Community
Contact Whitebeam
To-Do
Download
Credits
Licence
Whitebeam Users
 
 
 

Whitebeam Template Reference Documentation

System Template

abspath()

Calculate an absolute local URL from a relative URL.

Syntax

string = rb.page.abspath(pathString)

Parameters

The 'abspath' method takes 1 parameter:

Name Type/Value Range/Length Description
pathStringstring  Required. A (potentially) relative URL to convert to a cononical absolute form.

Results

The 'abspath' method returns string:

Type/Value Range/Length Description
string  This function returns a named attribute from an XML tag.

Remarks

This method can be useful in library code - stored for example in an include file. The method takes a relative URL and converts it to an absolute URL within the current virtual server. Note that the method does NOT check that the referenced file actually exists.

Whitebeam release 1.3.36
(loadtime : 133ms)