Class: Amiba::Source::Page

Inherits:
Object
  • Object
show all
Includes:
Amiba::Source
Defined in:
lib/amiba/source.rb

Constant Summary collapse

VALID_FORMATS =
%w{haml markdown}

Instance Method Summary collapse

Methods included from Amiba::Source

included

Instance Method Details



127
128
129
# File 'lib/amiba/source.rb', line 127

def link
  URI.escape( ["", "#{name}.html"].join("/") )
end

#output_filenameObject



131
132
133
# File 'lib/amiba/source.rb', line 131

def output_filename
  File.join(Amiba::Configuration.site_dir, "public/#{name}.html")
end