class Wst::MdPage
Public Class Methods
new(file_path)
click to toggle source
Calls superclass method
Wst::MdContent::new
# File lib/wst/page.rb, line 64 def initialize file_path super file_path base_path = File.join(Configuration.config['path'], '_pages') + '/' @cats = @cats.gsub(base_path, '') if !@cats.nil? @cats.chomp!('/') end
Public Instance Methods
content_url()
click to toggle source
# File lib/wst/page.rb, line 72 def content_url "#{@cats + '/' if @cats != ''}#{CGI.escape @slug}.html" end