1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00

asset helpers

This commit is contained in:
tdreyno 2009-08-04 16:34:02 -07:00
parent 746099e0c2
commit 5a548f6517

View file

@ -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