diff --git a/lib/middleman/helpers.rb b/lib/middleman/helpers.rb index 34da8875..2d59cc5d 100644 --- a/lib/middleman/helpers.rb +++ b/lib/middleman/helpers.rb @@ -26,6 +26,12 @@ Middleman.helpers do end end + def javascript_include_tag(path, options={}) + capture_haml do + haml_tag :script, options.merge(:src => asset_url(path), :type => "text/javascript") + end + end + def stylesheet_link_tag(path, options={}) options[:rel] ||= "stylesheet" capture_haml do