From 5a548f65178a27952d08d3d48cf67f1b873661c0 Mon Sep 17 00:00:00 2001 From: tdreyno Date: Tue, 4 Aug 2009 16:34:02 -0700 Subject: [PATCH] asset helpers --- lib/middleman/helpers.rb | 6 ++++++ 1 file changed, 6 insertions(+) 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