No superclasses
No subclasses
Overview
Method
}
Documentation coverage: 100 %Methods
- get_first_header
Parses an HTML file and returns the contents of the first
View source
get_info
Parses an HTML file and returns info for navigation and indexing
View source
get_meta_index
Parses an HTML file and returns the contents of the index meta tag
View source
get_meta_navigation
Parses an HTML file and returns the contents of the navigation meta tag
View source
get_meta_order
Parses an HTML file and returns the contents of the navigation meta tag
View source
get_title
Parses an HTML file and returns the contents of the
View source
read_tree
Recursive function which descends into a directory and creates a tree of htdocs static pages with a multi-level hashref: {. _path => '/...', # web path _nav => 'navigation info', # from meta tags _title => 'title', # from title tag _index => '0', # order index, from meta tag file1 => {nav => '...', title => '...', index => '...'}, file2 => {nav => '...', title => '...', index => '...'}, ...,. dir1 => { ..same structure as parent.. }, dir2 => { ..same structure as parent.. }, ...,. }.
N.B. A directory can be omitted by putting 'NO INDEX' as the value of the navigation meta tag
View source
sortnames
Does a case-insensitive sort of a list of file names and separates them into two lists - directories and non-directories
View source