class SerenadeCompiler

Custom Compilers

Public Instance Methods

compile(path) click to toggle source
# File lib/gumdrop/support/stitch.rb, line 63
def compile(path)
  content= File.read(path)
  viewname= File.basename(path).gsub('.serenade', '').gsub('.html', '').gsub('.', '_')
  %{
    Serenade.view(#{ viewname.to_json }, #{content.to_json});
  }
end