README.md in wrap_it-0.1.1 vs README.md in wrap_it-0.1.2
- old
+ new
@@ -178,10 +178,18 @@
If block given, it will be called each time enum changes its value in context of element with the new value as argument.
### Instance methods
+#### wrap(*args, &block)
+
+Wraps element with another.
+
+You can provide wrapper directly or specify wrapper class as first argument. In this case wrapper will created with specified set of arguments and options. If wrapper class ommited, WrapIt::Base will be used.
+
+If block present, it will be called when wrapper will rendered.
+
#### html_class
Returns array of html classes
#### html_class=(*args)
@@ -234,10 +242,18 @@
#### no_html_class?(*args, &block)
Determines whether element doesn't contains class, satisfied by conditions, specified in method arguments. See `html_class?`.
+#### set_html_data(name, value)
+
+Sets HTML data attribute named `name` to `value`.
+
+#### remove_html_data(name)
+
+Removes HTML data attribute named `name`.
+
## WrapIt::Container
### DSL methods
#### child(*args, &block)
@@ -250,9 +266,15 @@
* Strong testing
* Finish Sinatra integration
* Rubydoc documentation
# Changes
+
+`0.1.2`
+* fixed: double callbacks inclusion issue
+* added: Base#wrap
+* added: HTML data attribute processing
+* test improvements
`0.1.1`
* WrapIt.helpers fails if no helper registered
`0.1.0`