lib/ymdp/compiler/base.rb in ymdp-0.8.2 vs lib/ymdp/compiler/base.rb in ymdp-0.8.3

- old
+ new

@@ -75,11 +75,11 @@ # Process all code files (HTML and JavaScript) into usable, complete HTML files. # def process_all_files(path) Dir["#{path}**/*"].each do |f| build_file(f) - end + end end # Build this file if it's either: # * a view, but not a partial or layout, or # * a JavaScript file. @@ -96,9 +96,11 @@ :host => host } if build?(file) if file =~ /(\.haml|\.erb)$/ YMDP::Compiler::Template::View.new(params).build + elsif file =~ /\.coffee$/ + YMDP::Compiler::Template::CoffeeScript.new(params).build elsif file =~ /\.js$/ YMDP::Compiler::Template::JavaScript.new(params).build end end end \ No newline at end of file