Module | StaticMatic::Helpers::AssetsHelper |
In: |
lib/staticmatic/helpers/assets_helper.rb
|
Generates an image tag always relative to the current page unless absolute path or http url specified.
img(‘test_image.gif’)
-> <img
src="/images/test_image.gif" alt="Test image"/> img(‘contact/test_image.gif’)
-> <img
src="/images/contact/test_image.gif" alt="Test
image"/> img(‘’) -> <img src="
" alt="Test
image"/>
Generate javascript source tags for the specified files
javascripts(‘test’) -> <script language="javascript" src="javascripts/test.js"></script>
Generates links to all stylesheets in the source directory
or specific stylesheets in a specific order
Can also pass options hash in at the end so you can specify :media => :print