Class: Iatelier::Controllers::Ileaf

Inherits:
Object
  • Object
show all
Includes:
Action
Defined in:
lib/iatelier/controllers/ileaf.rb

Instance Method Summary collapse

Instance Method Details

#call(params) ⇒ Object



10
11
12
13
14
# File 'lib/iatelier/controllers/ileaf.rb', line 10

def call(params)
	@storage_location = './storage/leaves' + request.path_info.to_s + '.md'
	puts @storage_location
	self.body = ::Kramdown::Document.new(::File.open(@storage_location, external_encoding: "UTF-8").read).to_html
end