Method: Webgen::PathHandler::Base::Node#url

Defined in:
lib/webgen/path_handler/base.rb

#urlObject

Return the absolute URL of this node.

This method uses the configuration option ‘website.base_url’ for constructing the absolute URL.



39
40
41
42
# File 'lib/webgen/path_handler/base.rb', line 39

def url
  node_url = Webgen::Path.url(dest_path, false)
  node_url.absolute? ? node_url.to_s : File.join(tree.website.config['website.base_url'], dest_path)
end