mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
asset helpers
This commit is contained in:
parent
746099e0c2
commit
5a548f6517
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue