README.md in taksi-0.2.2 vs README.md in taksi-0.2.3
- old
+ new
@@ -20,15 +20,16 @@
```ruby
class Components::Users::ProfileResume
include Taksi::Component.new('users/profile_resume')
content do
- name Taksi::Dynamic
- profile_kind Taksi::Static, 'resume'
+ static :profile_kind, 'resume' # same as `field :profile_kind, Taksi::Static`
- details do
- age Taksi::Dynamic
- email Taksi::Dynamic
+ dynamic :name
+
+ field :details do
+ field :age Taksi::Dynamic # same as `dynamic :age`
+ field :email Taksi::Dynamic
end
end
end
```