lib/ahc.rb in ahc-0.2.2 vs lib/ahc.rb in ahc-0.2.4
- old
+ new
@@ -1,10 +1,10 @@
require 'erubis'
require 'ahcx_template_handler'
class Ahc
- def self.render(template_name, params, css_map = {})
+ def self.render(template_name, params)
if @@templates[template_name]
css = lambda {|css_class|
@@css_map[css_class] || css_class
}
return @@templates[template_name].result({:params => params, :css => css}).strip