README.md in exvo_helpers-0.0.5 vs README.md in exvo_helpers-0.0.6

- old
+ new

@@ -67,29 +67,60 @@ ``` ## View helpers -There is a `javascript_bundle_include_tag` view helper function, which includes a different Desktop JS bundles depending on current environment. +There are also all kinds of view helpers available, which output html tags based on `env`. -The following declaraions: +All examples are for the 'development' environment. + +### javascript_bundle_include_tag + ```ruby = javascript_bundle_include_tag("plugins") = javascript_bundle_include_tag("utils") = javascript_bundle_include_tag("widgets") = javascript_bundle_include_tag("dock") = javascript_bundle_include_tag("uploader") ``` -will output this for the 'development' environment: +=> ```html <script src="http://www.exvo.local/javascripts/bundles/plugins.js" type="text/javascript"></script> <script src="http://www.exvo.local/javascripts/bundles/utils.js" type="text/javascript"></script> <script src="http://www.exvo.local/javascripts/bundles/widgets.js" type="text/javascript"></script> <script src="http://www.exvo.local/javascripts/bundles/dock.js" type="text/javascript"></script> <script src="http://www.exvo.local/javascripts/bundles/uploader.js" type="text/javascript"></script> +``` + + +### themes_stylesheet_link_tag + +Note, that this helper does not support full API of Rails' `stylesheet_link_tag` (works best with only one CSS path as argument). + +```ruby += themes_stylesheet_link_tag "frost/all", :madia => 'all' +``` + +=> + +```html +<link href="http://themes.exvo.local/stylesheets/themes/frost/all.css" media="all" rel="stylesheet" type="text/css" /> +``` + + +### themes_image_tag + +```ruby += themes_image_tag("icons/exvo.png", :alt => 'Exvo') +``` + +=> + +```html +<img alt="Exvo" src="http://themes.exvo.local/stylesheets/images/icons/exvo.png" /> ``` Copyright © 2011 Exvo.com Development BV