Class: SerenadeCompiler
- Inherits:
-
Stitch::Compiler
- Object
- Stitch::Compiler
- SerenadeCompiler
- Defined in:
- lib/gumdrop/stitch_support.rb
Instance Method Summary collapse
Instance Method Details
#compile(path) ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/gumdrop/stitch_support.rb', line 21 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 |