lib/webby/resources/page.rb
# call-seq:
#    destination    => string
#
# Returns the path in the output directory where the rendered page should
# be stored. This path is used to determine if the page is dirty and in
# need of rendering.
#
# The destination for a page can be overridden by explicitly setting
# the 'destination' property in the page's meta-data.
#
call-seq:
destination    => string

Returns the path in the output directory where the rendered page should
be stored. This path is used to determine if the page is dirty and in
need of rendering.

The destination for a page can be overridden by explicitly setting
the 'destination' property in the page's meta-data.
call - seq : destination = > string Returns the path in the output directory where the rendered page should be stored . This path is used to determine if the page is dirty and in need of rendering . The destination for a page can be overridden by explicitly setting the ' destination ' property in the page ' s meta - data .
def destination
    return @dest if defined? @dest and @dest
    @dest = if @mdata.has_key? 'destination' then @mdata['destination']
            else ::File.join(dir, filename) end
    @dest = ::File.join(::Webby.site.output_dir, @dest)
    @dest << @number.to_s if @number
    ext = extension
    unless ext.nil? or ext.empty?
      @dest << '.' << ext
    end
    @dest
  end
def destination return @dest if defined? @dest and @dest @dest = if @mdata . has_key? 'destination' then @mdata [ 'destination' ] else :: File . join ( dir , filename ) end @dest = :: File . join ( :: Webby . site . output_dir , @dest ) @dest << @number . to_s if @number ext = extension unless ext . nil? or ext . empty? @dest << '.' << ext end @dest end
call-seq:
destination    => string
call - seq : destination = > string