README in masterview-0.1.3 vs README in masterview-0.1.5

- old
+ new

@@ -43,19 +43,19 @@ If you can use gems you may simply do the following gem install masterview_gem_pack -Now your gem is installed and you can skip these steps in the future. After creating your rails directory, change directory to it and run the following to create a very lightweight plugin instance for this application mainly consisting of an init.rb file which will get loaded at runtime. This init.rb refers to the gem for everything but allows you to override any constants or setup that has been provided. See MasterView module masterview.rb for a list of the available constants. +Now your gem is installed and you can skip these steps in the future. After creating your rails directory, change directory to it and run the following to create a very lightweight plugin instance for this application mainly consisting of an init.rb file which will get loaded at runtime. This init.rb refers to the gem for everything but allows you to override any constants or setup that has been provided. See MasterView module masterview.rb for a list of the available constants. script/generate masterview_plugin After this MasterView is ready for use. Skip down to the Usage section for more details. === Installation without using gems, install as plugin -script/plugin install svn://rubyforge.org/var/svn/masterview +script/plugin install svn://rubyforge.org/var/svn/masterview/tags/latest This will copy entire MasterView system into your vendor/plugin/masterview directory. You may tweak its init.rb to override any MasterView constants at runtime. See MasterView module masterview.rb for a list of available constants. Note that if you don't have svn (subversion) installed, you may also retrieve the plugin package (masterview_plugin.tgz or masterview_plugin.zip) from http://rubyforge.org/projects/masterview and simply extract into vendor/plugins/masterview == Usage @@ -383,9 +383,25 @@ <a mv:link_to_remote=":action => 'new'">New product</a> becomes <%= link_to_remote 'New product', :action => 'new' %> + +mv:omit_tag="evalString" + Omit the element tag if the evalString is empty or evaluates to true. For example... + + <span mv:omit_tag="">hello</span> + + becomes + + hello + + <span mv:omit_tag="@test">hello</span> + + becomes + + <% if @test %><span><% end %>hello<% if @test %></span><% end %> + mv:password_field="user, password" Replaces the tag with a password_field helper using the attribute as well as merging any html attributes that have been set by the designer, for example...