| Class Nav::Tokens |
|
A list of strings that uniquely identify a static web page; the strings correspond to a path through the filesystem hierarchy to where the web page's file lives. Think of it as a "normalized" URL. For index files, we return a path to the directory where that file lives. For other files, we return a path to that file itself.
The file found at the URL
/research/probability/seminars/index.shtml
is identified by the tokens
['research', 'probability', 'seminars']
| Methods |
| Public Class methods |
| url_to_tokens(str) |
Try to convert a URL into a list of tokens that uniquely identify the document the URL points to.
| Public Instance methods |
| to_url(index=-1) |
Convert this list of tokens into an absolute, normalized URL using tokens number 0..index.