Class: Fangorn::Haml

Inherits:
Output show all
Defined in:
lib/fangorn/haml.rb

Constant Summary collapse

SCRIPT_SOURCES =
{}
CACHE_BREAK =
SecureRandom.hex(4)

Instance Method Summary collapse

Methods inherited from Output

#create!, dest, dest=, dist!, dist?, env, env=, #get_config, make, #remove!, source, source=, #to_s

Constructor Details

#initialize(input) ⇒ Haml

Returns a new instance of Haml.



12
13
14
# File 'lib/fangorn/haml.rb', line 12

def initialize(input)
  super input, File.join(Output::dest, input.sub(File.join(Output::source, ''), '').sub(/\.haml$/, ''))
end