ovto 0.4.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -1
  3. data/CHANGELOG.md +5 -0
  4. data/Gemfile +3 -2
  5. data/Gemfile.lock +21 -21
  6. data/README.md +2 -2
  7. data/book/SUMMARY.md +1 -1
  8. data/book/api/fetch.md +3 -3
  9. data/book/api/pure_component.md +27 -0
  10. data/book/guides/install.md +76 -0
  11. data/book/guides/tutorial.md +3 -3
  12. data/book/ovtologo.png +0 -0
  13. data/docs/api/Ovto.html +18 -18
  14. data/docs/api/Ovto/Actions.html +1 -1
  15. data/docs/api/Ovto/App.html +1 -1
  16. data/docs/api/Ovto/Component.html +18 -10
  17. data/docs/api/Ovto/Component/MoreThanOneNode.html +1 -1
  18. data/docs/api/Ovto/PureComponent.html +368 -0
  19. data/docs/api/Ovto/PureComponent/StateIsNotAvailable.html +124 -0
  20. data/docs/api/Ovto/Runtime.html +1 -1
  21. data/docs/api/Ovto/State.html +1 -1
  22. data/docs/api/Ovto/State/MissingValue.html +1 -1
  23. data/docs/api/Ovto/State/UnknownKey.html +1 -1
  24. data/docs/api/Ovto/WiredActions.html +1 -1
  25. data/docs/api/_index.html +26 -4
  26. data/docs/api/actions.html +8 -8
  27. data/docs/api/app.html +8 -8
  28. data/docs/api/class_list.html +1 -1
  29. data/docs/api/component.html +8 -8
  30. data/docs/api/fetch.html +11 -11
  31. data/docs/api/file.README.html +75 -79
  32. data/docs/api/index.html +75 -79
  33. data/docs/api/method_list.html +43 -19
  34. data/docs/api/pure_component.md +27 -0
  35. data/docs/api/state.html +8 -8
  36. data/docs/api/top-level-namespace.html +1 -1
  37. data/docs/gitbook/gitbook.js +2 -2
  38. data/docs/gitbook/theme.js +1 -1
  39. data/docs/guides/debugging.html +8 -8
  40. data/docs/guides/development.html +8 -8
  41. data/docs/guides/install.html +426 -0
  42. data/docs/guides/tutorial.html +74 -65
  43. data/docs/index.html +10 -16
  44. data/docs/ovtologo.png +0 -0
  45. data/docs/search_index.json +1 -1
  46. data/examples/sinatra/Gemfile.lock +2 -2
  47. data/examples/static/Gemfile.lock +6 -10
  48. data/lib/ovto.rb +1 -0
  49. data/lib/ovto/component.rb +25 -12
  50. data/lib/ovto/fetch.rb +1 -1
  51. data/lib/ovto/pure_component.rb +22 -0
  52. data/lib/ovto/version.rb +1 -1
  53. data/ovto.gemspec +1 -1
  54. metadata +21 -5
@@ -313,7 +313,7 @@
313
313
  </div>
314
314
 
315
315
  <div id="footer">
316
- Generated on Fri Apr 19 12:51:39 2019 by
316
+ Generated on Thu Aug 8 01:14:40 2019 by
317
317
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
318
318
  0.9.19 (ruby-2.5.5).
319
319
  </div>
@@ -842,7 +842,7 @@
842
842
  </div>
843
843
 
844
844
  <div id="footer">
845
- Generated on Fri Apr 19 12:51:39 2019 by
845
+ Generated on Thu Aug 8 01:14:40 2019 by
846
846
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
847
847
  0.9.19 (ruby-2.5.5).
848
848
  </div>
@@ -125,7 +125,7 @@
125
125
  </div>
126
126
 
127
127
  <div id="footer">
128
- Generated on Fri Apr 19 12:51:39 2019 by
128
+ Generated on Thu Aug 8 01:14:40 2019 by
129
129
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
130
130
  0.9.19 (ruby-2.5.5).
131
131
  </div>
@@ -125,7 +125,7 @@
125
125
  </div>
126
126
 
127
127
  <div id="footer">
128
- Generated on Fri Apr 19 12:51:39 2019 by
128
+ Generated on Thu Aug 8 01:14:40 2019 by
129
129
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
130
130
  0.9.19 (ruby-2.5.5).
131
131
  </div>
@@ -402,7 +402,7 @@
402
402
  </div>
403
403
 
404
404
  <div id="footer">
405
- Generated on Fri Apr 19 12:51:39 2019 by
405
+ Generated on Thu Aug 8 01:14:40 2019 by
406
406
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
407
407
  0.9.19 (ruby-2.5.5).
408
408
  </div>
@@ -150,6 +150,21 @@
150
150
  </ul>
151
151
 
152
152
 
153
+ <ul id="alpha_P" class="alpha">
154
+ <li class="letter">P</li>
155
+ <ul>
156
+
157
+ <li>
158
+ <span class='object_link'><a href="Ovto/PureComponent.html" title="Ovto::PureComponent (class)">PureComponent</a></span>
159
+
160
+ <small>(Ovto)</small>
161
+
162
+ </li>
163
+
164
+ </ul>
165
+ </ul>
166
+
167
+
153
168
  <ul id="alpha_R" class="alpha">
154
169
  <li class="letter">R</li>
155
170
  <ul>
@@ -176,10 +191,20 @@
176
191
 
177
192
  </li>
178
193
 
194
+ <li>
195
+ <span class='object_link'><a href="Ovto/PureComponent/StateIsNotAvailable.html" title="Ovto::PureComponent::StateIsNotAvailable (class)">StateIsNotAvailable</a></span>
196
+
197
+ <small>(Ovto::PureComponent)</small>
198
+
199
+ </li>
200
+
179
201
  </ul>
180
202
  </ul>
181
203
 
182
204
 
205
+ </td><td valign='top' width="33%">
206
+
207
+
183
208
  <ul id="alpha_U" class="alpha">
184
209
  <li class="letter">U</li>
185
210
  <ul>
@@ -195,9 +220,6 @@
195
220
  </ul>
196
221
 
197
222
 
198
- </td><td valign='top' width="33%">
199
-
200
-
201
223
  <ul id="alpha_W" class="alpha">
202
224
  <li class="letter">W</li>
203
225
  <ul>
@@ -221,7 +243,7 @@
221
243
  </div>
222
244
 
223
245
  <div id="footer">
224
- Generated on Fri Apr 19 12:51:38 2019 by
246
+ Generated on Thu Aug 8 01:14:40 2019 by
225
247
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
226
248
  0.9.19 (ruby-2.5.5).
227
249
  </div>
@@ -7,7 +7,7 @@
7
7
  <title>Ovto::Actions · GitBook</title>
8
8
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
9
9
  <meta name="description" content="">
10
- <meta name="generator" content="GitBook 3.2.3">
10
+ <meta name="generator" content="GitBook 3.2.2">
11
11
 
12
12
 
13
13
 
@@ -102,12 +102,12 @@
102
102
 
103
103
  </li>
104
104
 
105
- <li class="chapter " data-level="1.2" data-path="../">
105
+ <li class="chapter " data-level="1.2" data-path="../guides/tutorial.html">
106
106
 
107
- <a href="../">
107
+ <a href="../guides/tutorial.html">
108
108
 
109
109
 
110
- Introduction
110
+ Getting Started
111
111
 
112
112
  </a>
113
113
 
@@ -115,12 +115,12 @@
115
115
 
116
116
  </li>
117
117
 
118
- <li class="chapter " data-level="1.3" data-path="../guides/tutorial.html">
118
+ <li class="chapter " data-level="1.3" data-path="../guides/install.html">
119
119
 
120
- <a href="../guides/tutorial.html">
120
+ <a href="../guides/install.html">
121
121
 
122
122
 
123
- Getting Started
123
+ Install
124
124
 
125
125
  </a>
126
126
 
@@ -407,7 +407,7 @@ In such cases, you can call another action via <code>actions</code> to tell Ovto
407
407
  <script>
408
408
  var gitbook = gitbook || [];
409
409
  gitbook.push(function() {
410
- gitbook.page.hasChanged({"page":{"title":"Ovto::Actions","level":"1.4.3","depth":2,"next":{"title":"Ovto::Component","level":"1.4.4","depth":2,"path":"api/component.md","ref":"api/component.md","articles":[]},"previous":{"title":"Ovto::State","level":"1.4.2","depth":2,"path":"api/state.md","ref":"api/state.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"api/actions.md","mtime":"2019-04-18T08:50:22.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-04-19T03:51:35.766Z"},"basePath":"..","book":{"language":""}});
410
+ gitbook.page.hasChanged({"page":{"title":"Ovto::Actions","level":"1.4.3","depth":2,"next":{"title":"Ovto::Component","level":"1.4.4","depth":2,"path":"api/component.md","ref":"api/component.md","articles":[]},"previous":{"title":"Ovto::State","level":"1.4.2","depth":2,"path":"api/state.md","ref":"api/state.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"api/actions.md","mtime":"2019-04-18T08:50:22.000Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2019-08-07T16:14:36.732Z"},"basePath":"..","book":{"language":""}});
411
411
  });
412
412
  </script>
413
413
  </div>
@@ -7,7 +7,7 @@
7
7
  <title>Ovto::App · GitBook</title>
8
8
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
9
9
  <meta name="description" content="">
10
- <meta name="generator" content="GitBook 3.2.3">
10
+ <meta name="generator" content="GitBook 3.2.2">
11
11
 
12
12
 
13
13
 
@@ -100,12 +100,12 @@
100
100
 
101
101
  </li>
102
102
 
103
- <li class="chapter " data-level="1.2" data-path="../">
103
+ <li class="chapter " data-level="1.2" data-path="../guides/tutorial.html">
104
104
 
105
- <a href="../">
105
+ <a href="../guides/tutorial.html">
106
106
 
107
107
 
108
- Introduction
108
+ Getting Started
109
109
 
110
110
  </a>
111
111
 
@@ -113,12 +113,12 @@
113
113
 
114
114
  </li>
115
115
 
116
- <li class="chapter " data-level="1.3" data-path="../guides/tutorial.html">
116
+ <li class="chapter " data-level="1.3" data-path="../guides/install.html">
117
117
 
118
- <a href="../guides/tutorial.html">
118
+ <a href="../guides/install.html">
119
119
 
120
120
 
121
- Getting Started
121
+ Install
122
122
 
123
123
  </a>
124
124
 
@@ -411,7 +411,7 @@ MyApp.run(<span class="hljs-symbol">id:</span> <span class="hljs-string">&apos;o
411
411
  <script>
412
412
  var gitbook = gitbook || [];
413
413
  gitbook.push(function() {
414
- gitbook.page.hasChanged({"page":{"title":"Ovto::App","level":"1.4.1","depth":2,"next":{"title":"Ovto::State","level":"1.4.2","depth":2,"path":"api/state.md","ref":"api/state.md","articles":[]},"previous":{"title":"API","level":"1.4","depth":1,"ref":"","articles":[{"title":"Ovto::App","level":"1.4.1","depth":2,"path":"api/app.md","ref":"api/app.md","articles":[]},{"title":"Ovto::State","level":"1.4.2","depth":2,"path":"api/state.md","ref":"api/state.md","articles":[]},{"title":"Ovto::Actions","level":"1.4.3","depth":2,"path":"api/actions.md","ref":"api/actions.md","articles":[]},{"title":"Ovto::Component","level":"1.4.4","depth":2,"path":"api/component.md","ref":"api/component.md","articles":[]},{"title":"Ovto.fetch","level":"1.4.5","depth":2,"path":"api/fetch.md","ref":"api/fetch.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"api/app.md","mtime":"2019-04-18T08:51:42.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-04-19T03:51:35.766Z"},"basePath":"..","book":{"language":""}});
414
+ gitbook.page.hasChanged({"page":{"title":"Ovto::App","level":"1.4.1","depth":2,"next":{"title":"Ovto::State","level":"1.4.2","depth":2,"path":"api/state.md","ref":"api/state.md","articles":[]},"previous":{"title":"API","level":"1.4","depth":1,"ref":"","articles":[{"title":"Ovto::App","level":"1.4.1","depth":2,"path":"api/app.md","ref":"api/app.md","articles":[]},{"title":"Ovto::State","level":"1.4.2","depth":2,"path":"api/state.md","ref":"api/state.md","articles":[]},{"title":"Ovto::Actions","level":"1.4.3","depth":2,"path":"api/actions.md","ref":"api/actions.md","articles":[]},{"title":"Ovto::Component","level":"1.4.4","depth":2,"path":"api/component.md","ref":"api/component.md","articles":[]},{"title":"Ovto.fetch","level":"1.4.5","depth":2,"path":"api/fetch.md","ref":"api/fetch.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"api/app.md","mtime":"2019-04-18T08:51:42.000Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2019-08-07T16:14:36.732Z"},"basePath":"..","book":{"language":""}});
415
415
  });
416
416
  </script>
417
417
  </div>
@@ -43,7 +43,7 @@
43
43
 
44
44
  <ul id="full_list" class="class">
45
45
  <li id="object_" class="odd"><div class="item" style="padding-left:30px"><span class='object_link'><a href="top-level-namespace.html" title="Top Level Namespace (root)">Top Level Namespace</a></span></div></li>
46
- <li id='object_Ovto' class='even'><div class='item' style='padding-left:30px'><a class='toggle'></a> <span class='object_link'><a href="Ovto.html" title="Ovto (module)">Ovto</a></span><small class='search_info'>Top Level Namespace</small></div><ul><li id='object_Ovto::Actions' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Ovto/Actions.html" title="Ovto::Actions (class)">Actions</a></span> &lt; Object<small class='search_info'>Ovto</small></div></li><li id='object_Ovto::App' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Ovto/App.html" title="Ovto::App (class)">App</a></span> &lt; Object<small class='search_info'>Ovto</small></div></li><li id='object_Ovto::Component' class='collapsed odd'><div class='item' style='padding-left:45px'><a class='toggle'></a> <span class='object_link'><a href="Ovto/Component.html" title="Ovto::Component (class)">Component</a></span> &lt; Object<small class='search_info'>Ovto</small></div><ul><li id='object_Ovto::Component::MoreThanOneNode' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="Ovto/Component/MoreThanOneNode.html" title="Ovto::Component::MoreThanOneNode (class)">MoreThanOneNode</a></span> &lt; StandardError<small class='search_info'>Ovto::Component</small></div></li></ul></li><li id='object_Ovto::Runtime' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Ovto/Runtime.html" title="Ovto::Runtime (class)">Runtime</a></span> &lt; Object<small class='search_info'>Ovto</small></div></li><li id='object_Ovto::State' class='collapsed odd'><div class='item' style='padding-left:45px'><a class='toggle'></a> <span class='object_link'><a href="Ovto/State.html" title="Ovto::State (class)">State</a></span> &lt; Object<small class='search_info'>Ovto</small></div><ul><li id='object_Ovto::State::MissingValue' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="Ovto/State/MissingValue.html" title="Ovto::State::MissingValue (class)">MissingValue</a></span> &lt; StandardError<small class='search_info'>Ovto::State</small></div></li><li id='object_Ovto::State::UnknownKey' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="Ovto/State/UnknownKey.html" title="Ovto::State::UnknownKey (class)">UnknownKey</a></span> &lt; StandardError<small class='search_info'>Ovto::State</small></div></li></ul></li><li id='object_Ovto::WiredActions' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Ovto/WiredActions.html" title="Ovto::WiredActions (class)">WiredActions</a></span> &lt; Object<small class='search_info'>Ovto</small></div></li></ul></li>
46
+ <li id='object_Ovto' class='even'><div class='item' style='padding-left:30px'><a class='toggle'></a> <span class='object_link'><a href="Ovto.html" title="Ovto (module)">Ovto</a></span><small class='search_info'>Top Level Namespace</small></div><ul><li id='object_Ovto::Actions' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Ovto/Actions.html" title="Ovto::Actions (class)">Actions</a></span> &lt; Object<small class='search_info'>Ovto</small></div></li><li id='object_Ovto::App' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Ovto/App.html" title="Ovto::App (class)">App</a></span> &lt; Object<small class='search_info'>Ovto</small></div></li><li id='object_Ovto::Component' class='collapsed odd'><div class='item' style='padding-left:45px'><a class='toggle'></a> <span class='object_link'><a href="Ovto/Component.html" title="Ovto::Component (class)">Component</a></span> &lt; Object<small class='search_info'>Ovto</small></div><ul><li id='object_Ovto::Component::MoreThanOneNode' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="Ovto/Component/MoreThanOneNode.html" title="Ovto::Component::MoreThanOneNode (class)">MoreThanOneNode</a></span> &lt; StandardError<small class='search_info'>Ovto::Component</small></div></li></ul></li><li id='object_Ovto::PureComponent' class='collapsed even'><div class='item' style='padding-left:45px'><a class='toggle'></a> <span class='object_link'><a href="Ovto/PureComponent.html" title="Ovto::PureComponent (class)">PureComponent</a></span> &lt; Component<small class='search_info'>Ovto</small></div><ul><li id='object_Ovto::PureComponent::StateIsNotAvailable' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="Ovto/PureComponent/StateIsNotAvailable.html" title="Ovto::PureComponent::StateIsNotAvailable (class)">StateIsNotAvailable</a></span> &lt; StandardError<small class='search_info'>Ovto::PureComponent</small></div></li></ul></li><li id='object_Ovto::Runtime' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Ovto/Runtime.html" title="Ovto::Runtime (class)">Runtime</a></span> &lt; Object<small class='search_info'>Ovto</small></div></li><li id='object_Ovto::State' class='collapsed even'><div class='item' style='padding-left:45px'><a class='toggle'></a> <span class='object_link'><a href="Ovto/State.html" title="Ovto::State (class)">State</a></span> &lt; Object<small class='search_info'>Ovto</small></div><ul><li id='object_Ovto::State::MissingValue' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="Ovto/State/MissingValue.html" title="Ovto::State::MissingValue (class)">MissingValue</a></span> &lt; StandardError<small class='search_info'>Ovto::State</small></div></li><li id='object_Ovto::State::UnknownKey' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="Ovto/State/UnknownKey.html" title="Ovto::State::UnknownKey (class)">UnknownKey</a></span> &lt; StandardError<small class='search_info'>Ovto::State</small></div></li></ul></li><li id='object_Ovto::WiredActions' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Ovto/WiredActions.html" title="Ovto::WiredActions (class)">WiredActions</a></span> &lt; Object<small class='search_info'>Ovto</small></div></li></ul></li>
47
47
 
48
48
  </ul>
49
49
  </div>
@@ -7,7 +7,7 @@
7
7
  <title>Ovto::Component · GitBook</title>
8
8
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
9
9
  <meta name="description" content="">
10
- <meta name="generator" content="GitBook 3.2.3">
10
+ <meta name="generator" content="GitBook 3.2.2">
11
11
 
12
12
 
13
13
 
@@ -102,12 +102,12 @@
102
102
 
103
103
  </li>
104
104
 
105
- <li class="chapter " data-level="1.2" data-path="../">
105
+ <li class="chapter " data-level="1.2" data-path="../guides/tutorial.html">
106
106
 
107
- <a href="../">
107
+ <a href="../guides/tutorial.html">
108
108
 
109
109
 
110
- Introduction
110
+ Getting Started
111
111
 
112
112
  </a>
113
113
 
@@ -115,12 +115,12 @@
115
115
 
116
116
  </li>
117
117
 
118
- <li class="chapter " data-level="1.3" data-path="../guides/tutorial.html">
118
+ <li class="chapter " data-level="1.3" data-path="../guides/install.html">
119
119
 
120
- <a href="../guides/tutorial.html">
120
+ <a href="../guides/install.html">
121
121
 
122
122
 
123
- Getting Started
123
+ Install
124
124
 
125
125
  </a>
126
126
 
@@ -467,7 +467,7 @@ HTML could be described like this.</p>
467
467
  <script>
468
468
  var gitbook = gitbook || [];
469
469
  gitbook.push(function() {
470
- gitbook.page.hasChanged({"page":{"title":"Ovto::Component","level":"1.4.4","depth":2,"next":{"title":"Ovto.fetch","level":"1.4.5","depth":2,"path":"api/fetch.md","ref":"api/fetch.md","articles":[]},"previous":{"title":"Ovto::Actions","level":"1.4.3","depth":2,"path":"api/actions.md","ref":"api/actions.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"api/component.md","mtime":"2019-04-18T08:50:59.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-04-19T03:51:35.766Z"},"basePath":"..","book":{"language":""}});
470
+ gitbook.page.hasChanged({"page":{"title":"Ovto::Component","level":"1.4.4","depth":2,"next":{"title":"Ovto.fetch","level":"1.4.5","depth":2,"path":"api/fetch.md","ref":"api/fetch.md","articles":[]},"previous":{"title":"Ovto::Actions","level":"1.4.3","depth":2,"path":"api/actions.md","ref":"api/actions.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"api/component.md","mtime":"2019-04-18T08:50:59.000Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2019-08-07T16:14:36.732Z"},"basePath":"..","book":{"language":""}});
471
471
  });
472
472
  </script>
473
473
  </div>
@@ -7,7 +7,7 @@
7
7
  <title>Ovto.fetch · GitBook</title>
8
8
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
9
9
  <meta name="description" content="">
10
- <meta name="generator" content="GitBook 3.2.3">
10
+ <meta name="generator" content="GitBook 3.2.2">
11
11
 
12
12
 
13
13
 
@@ -100,12 +100,12 @@
100
100
 
101
101
  </li>
102
102
 
103
- <li class="chapter " data-level="1.2" data-path="../">
103
+ <li class="chapter " data-level="1.2" data-path="../guides/tutorial.html">
104
104
 
105
- <a href="../">
105
+ <a href="../guides/tutorial.html">
106
106
 
107
107
 
108
- Introduction
108
+ Getting Started
109
109
 
110
110
  </a>
111
111
 
@@ -113,12 +113,12 @@
113
113
 
114
114
  </li>
115
115
 
116
- <li class="chapter " data-level="1.3" data-path="../guides/tutorial.html">
116
+ <li class="chapter " data-level="1.3" data-path="../guides/install.html">
117
117
 
118
- <a href="../guides/tutorial.html">
118
+ <a href="../guides/install.html">
119
119
 
120
120
 
121
- Getting Started
121
+ Install
122
122
 
123
123
  </a>
124
124
 
@@ -305,21 +305,21 @@
305
305
  <p><code>Ovto.fetch</code> returns Opal&apos;s Promise object that calls the API with the specified parameters.</p>
306
306
  <h2 id="examples">Examples</h2>
307
307
  <p>GET</p>
308
- <pre><code class="lang-rb">Ovto.fetch(<span class="hljs-string">&apos;/api/tasks&apos;</span>){|json_data|
308
+ <pre><code class="lang-rb">Ovto.fetch(<span class="hljs-string">&apos;/api/tasks&apos;</span>).<span class="hljs-keyword">then</span>{|json_data|
309
309
  p json_data
310
310
  }.fail{|e| <span class="hljs-comment"># Network error, 404 Not Found, JSON parse error, etc.</span>
311
311
  p e
312
312
  }
313
313
  </code></pre>
314
314
  <p>POST</p>
315
- <pre><code class="lang-rb">Ovto.fetch(<span class="hljs-string">&apos;/api/new_task&apos;</span>, <span class="hljs-string">&apos;POST&apos;</span>, {<span class="hljs-symbol">title:</span> <span class="hljs-string">&quot;do something&quot;</span>}){|json_data|
315
+ <pre><code class="lang-rb">Ovto.fetch(<span class="hljs-string">&apos;/api/new_task&apos;</span>, <span class="hljs-string">&apos;POST&apos;</span>, {<span class="hljs-symbol">title:</span> <span class="hljs-string">&quot;do something&quot;</span>}).<span class="hljs-keyword">then</span>{|json_data|
316
316
  p json_data
317
317
  }.fail{|e| <span class="hljs-comment"># Network error, 404 Not Found, JSON parse error, etc.</span>
318
318
  p e
319
319
  }
320
320
  </code></pre>
321
321
  <p>PUT</p>
322
- <pre><code class="lang-rb">Ovto.fetch(<span class="hljs-string">&apos;/api/tasks/1&apos;</span>, <span class="hljs-string">&apos;PUT&apos;</span>, {<span class="hljs-symbol">title:</span> <span class="hljs-string">&quot;do something&quot;</span>}){|json_data|
322
+ <pre><code class="lang-rb">Ovto.fetch(<span class="hljs-string">&apos;/api/tasks/1&apos;</span>, <span class="hljs-string">&apos;PUT&apos;</span>, {<span class="hljs-symbol">title:</span> <span class="hljs-string">&quot;do something&quot;</span>}).<span class="hljs-keyword">then</span>{|json_data|
323
323
  p json_data
324
324
  }.fail{|e| <span class="hljs-comment"># Network error, 404 Not Found, JSON parse error, etc.</span>
325
325
  p e
@@ -366,7 +366,7 @@
366
366
  <script>
367
367
  var gitbook = gitbook || [];
368
368
  gitbook.push(function() {
369
- gitbook.page.hasChanged({"page":{"title":"Ovto.fetch","level":"1.4.5","depth":2,"next":{"title":"Guides","level":"1.5","depth":1,"ref":"","articles":[{"title":"Debugging","level":"1.5.1","depth":2,"path":"guides/debugging.md","ref":"guides/debugging.md","articles":[]},{"title":"Development","level":"1.5.2","depth":2,"path":"guides/development.md","ref":"guides/development.md","articles":[]}]},"previous":{"title":"Ovto::Component","level":"1.4.4","depth":2,"path":"api/component.md","ref":"api/component.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"api/fetch.md","mtime":"2018-08-18T07:44:18.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-04-19T03:51:35.766Z"},"basePath":"..","book":{"language":""}});
369
+ gitbook.page.hasChanged({"page":{"title":"Ovto.fetch","level":"1.4.5","depth":2,"next":{"title":"Guides","level":"1.5","depth":1,"ref":"","articles":[{"title":"Debugging","level":"1.5.1","depth":2,"path":"guides/debugging.md","ref":"guides/debugging.md","articles":[]},{"title":"Development","level":"1.5.2","depth":2,"path":"guides/development.md","ref":"guides/development.md","articles":[]}]},"previous":{"title":"Ovto::Component","level":"1.4.4","depth":2,"path":"api/component.md","ref":"api/component.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"api/fetch.md","mtime":"2019-08-07T16:07:49.000Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2019-08-07T16:14:36.732Z"},"basePath":"..","book":{"language":""}});
370
370
  });
371
371
  </script>
372
372
  </div>
@@ -57,103 +57,99 @@
57
57
  <div class="clear"></div>
58
58
  </div>
59
59
 
60
- <div id="content"><div id='filecontents'>
61
- <h1 id="label-Ovto">Ovto</h1>
60
+ <div id="content"><div id='filecontents'><h1>Ovto</h1>
62
61
 
63
62
  <p>Client-side web framework for Opal</p>
64
63
 
65
- <p><img src="ovtologo.png"></p>
66
-
67
- <h2 id="label-Documents">Documents</h2>
68
- <ul><li>
69
- <p><a href="https://yhara.github.io/ovto/">Book</a></p>
70
- </li><li>
71
- <p><a href="https://yhara.github.io/ovto/api/">yardoc</a></p>
72
- </li></ul>
73
-
74
- <h2 id="label-Example">Example</h2>
75
-
76
- <p><img src="screenshot.png"></p>
77
-
78
- <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>ovto</span><span class='tstring_end'>&#39;</span></span>
79
-
80
- <span class='kw'>class</span> <span class='const'>MyApp</span> <span class='op'>&lt;</span> <span class='const'><span class='object_link'><a href="Ovto.html" title="Ovto (module)">Ovto</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Ovto/App.html" title="Ovto::App (class)">App</a></span></span>
81
- <span class='kw'>class</span> <span class='const'>State</span> <span class='op'>&lt;</span> <span class='const'><span class='object_link'><a href="Ovto.html" title="Ovto (module)">Ovto</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Ovto/State.html" title="Ovto::State (class)">State</a></span></span>
82
- <span class='id identifier rubyid_item'>item</span> <span class='symbol'>:celsius</span><span class='comma'>,</span> <span class='label'>default:</span> <span class='int'>0</span>
83
-
84
- <span class='kw'>def</span> <span class='id identifier rubyid_fahrenheit'>fahrenheit</span>
85
- <span class='lparen'>(</span><span class='id identifier rubyid_celsius'>celsius</span> <span class='op'>*</span> <span class='int'>9</span> <span class='op'>/</span> <span class='float'>5.0</span><span class='rparen'>)</span> <span class='op'>+</span> <span class='int'>32</span>
86
- <span class='kw'>end</span>
87
- <span class='kw'>end</span>
88
-
89
- <span class='kw'>class</span> <span class='const'>Actions</span> <span class='op'>&lt;</span> <span class='const'><span class='object_link'><a href="Ovto.html" title="Ovto (module)">Ovto</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Ovto/Actions.html" title="Ovto::Actions (class)">Actions</a></span></span>
90
- <span class='kw'>def</span> <span class='id identifier rubyid_set_celsius'>set_celsius</span><span class='lparen'>(</span><span class='label'>value:</span><span class='rparen'>)</span>
91
- <span class='kw'>return</span> <span class='lbrace'>{</span><span class='label'>celsius:</span> <span class='id identifier rubyid_value'>value</span><span class='rbrace'>}</span>
92
- <span class='kw'>end</span>
93
-
94
- <span class='kw'>def</span> <span class='id identifier rubyid_set_fahrenheit'>set_fahrenheit</span><span class='lparen'>(</span><span class='label'>value:</span><span class='rparen'>)</span>
95
- <span class='id identifier rubyid_new_celsius'>new_celsius</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span> <span class='op'>-</span> <span class='int'>32</span><span class='rparen'>)</span> <span class='op'>*</span> <span class='int'>5</span> <span class='op'>/</span> <span class='float'>9.0</span>
96
- <span class='kw'>return</span> <span class='lbrace'>{</span><span class='label'>celsius:</span> <span class='id identifier rubyid_new_celsius'>new_celsius</span><span class='rbrace'>}</span>
97
- <span class='kw'>end</span>
98
- <span class='kw'>end</span>
99
-
100
- <span class='kw'>class</span> <span class='const'>MainComponent</span> <span class='op'>&lt;</span> <span class='const'><span class='object_link'><a href="Ovto.html" title="Ovto (module)">Ovto</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Ovto/Component.html" title="Ovto::Component (class)">Component</a></span></span>
101
- <span class='kw'>def</span> <span class='id identifier rubyid_render'>render</span>
102
- <span class='id identifier rubyid_o'>o</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>div</span><span class='tstring_end'>&#39;</span></span> <span class='kw'>do</span>
103
- <span class='id identifier rubyid_o'>o</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>span</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Celcius:</span><span class='tstring_end'>&#39;</span></span>
104
- <span class='id identifier rubyid_o'>o</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>input</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='lbrace'>{</span>
105
- <span class='label'>type:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>text</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
106
- <span class='label'>onchange:</span> <span class='tlambda'>-&gt;</span><span class='lparen'>(</span><span class='id identifier rubyid_e'>e</span><span class='rparen'>)</span><span class='tlambeg'>{</span> <span class='id identifier rubyid_actions'>actions</span><span class='period'>.</span><span class='id identifier rubyid_set_celsius'>set_celsius</span><span class='lparen'>(</span><span class='label'>value:</span> <span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_target'>target</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span><span class='rparen'>)</span> <span class='rbrace'>}</span><span class='comma'>,</span>
107
- <span class='label'>value:</span> <span class='id identifier rubyid_state'>state</span><span class='period'>.</span><span class='id identifier rubyid_celsius'>celsius</span>
108
- <span class='rbrace'>}</span>
109
- <span class='id identifier rubyid_o'>o</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>span</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Fahrenheit:</span><span class='tstring_end'>&#39;</span></span>
110
- <span class='id identifier rubyid_o'>o</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>input</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='lbrace'>{</span>
111
- <span class='label'>type:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>text</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
112
- <span class='label'>onchange:</span> <span class='tlambda'>-&gt;</span><span class='lparen'>(</span><span class='id identifier rubyid_e'>e</span><span class='rparen'>)</span><span class='tlambeg'>{</span> <span class='id identifier rubyid_actions'>actions</span><span class='period'>.</span><span class='id identifier rubyid_set_fahrenheit'>set_fahrenheit</span><span class='lparen'>(</span><span class='label'>value:</span> <span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_target'>target</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span><span class='rparen'>)</span> <span class='rbrace'>}</span><span class='comma'>,</span>
113
- <span class='label'>value:</span> <span class='id identifier rubyid_state'>state</span><span class='period'>.</span><span class='id identifier rubyid_fahrenheit'>fahrenheit</span>
114
- <span class='rbrace'>}</span>
115
- <span class='kw'>end</span>
116
- <span class='kw'>end</span>
117
- <span class='kw'>end</span>
118
- <span class='kw'>end</span>
119
-
120
- <span class='const'>MyApp</span><span class='period'>.</span><span class='id identifier rubyid_run'>run</span><span class='lparen'>(</span><span class='label'>id:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>ovto</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
64
+ <p><img src="ovtologo.png" alt="logo"></p>
65
+
66
+ <h2>Documents</h2>
67
+
68
+ <ul>
69
+ <li><a href="https://yhara.github.io/ovto/docs/">Book</a></li>
70
+ <li><a href="https://yhara.github.io/ovto/api/">yardoc</a></li>
71
+ </ul>
72
+
73
+ <h2>Example</h2>
74
+
75
+ <p><img src="screenshot.png" alt="screenshot"></p>
76
+
77
+ <pre class="code rb"><code class="rb">require &#39;ovto&#39;
78
+
79
+ class MyApp &lt; Ovto::App
80
+ class State &lt; Ovto::State
81
+ item :celsius, default: 0
82
+
83
+ def fahrenheit
84
+ (celsius * 9 / 5.0) + 32
85
+ end
86
+ end
87
+
88
+ class Actions &lt; Ovto::Actions
89
+ def set_celsius(value:)
90
+ return {celsius: value}
91
+ end
92
+
93
+ def set_fahrenheit(value:)
94
+ new_celsius = (value - 32) * 5 / 9.0
95
+ return {celsius: new_celsius}
96
+ end
97
+ end
98
+
99
+ class MainComponent &lt; Ovto::Component
100
+ def render
101
+ o &#39;div&#39; do
102
+ o &#39;span&#39;, &#39;Celcius:&#39;
103
+ o &#39;input&#39;, {
104
+ type: &#39;text&#39;,
105
+ onchange: -&gt;(e){ actions.set_celsius(value: e.target.value.to_i) },
106
+ value: state.celsius
107
+ }
108
+ o &#39;span&#39;, &#39;Fahrenheit:&#39;
109
+ o &#39;input&#39;, {
110
+ type: &#39;text&#39;,
111
+ onchange: -&gt;(e){ actions.set_fahrenheit(value: e.target.value.to_i) },
112
+ value: state.fahrenheit
113
+ }
114
+ end
115
+ end
116
+ end
117
+ end
118
+
119
+ MyApp.run(id: &#39;ovto&#39;)
121
120
  </code></pre>
122
121
 
123
- <p>See the <a
124
- href="https://yhara.github.io/ovto/guides/tutorial.html">book</a> for
125
- details.</p>
122
+ <p>See the <a href="https://yhara.github.io/ovto/docs/guides/tutorial.html">book</a> for details.</p>
126
123
 
127
- <h2 id="label-Setup">Setup</h2>
124
+ <h2>Setup</h2>
128
125
 
129
- <h3 id="label-Static">Static</h3>
126
+ <h3>Static</h3>
130
127
 
131
- <p><a href="./examples/static">./examples/static</a> demonstrates how to
132
- convert Ovto app into a .js file.</p>
128
+ <p><a href="./examples/static">./examples/static</a> demonstrates how to convert Ovto app
129
+ into a .js file.</p>
133
130
 
134
- <h3 id="label-Ovto+-2B+Sinatra">Ovto + Sinatra</h3>
131
+ <h3>Ovto + Sinatra</h3>
135
132
 
136
- <p><a href="./examples/sinatra">./examples/sinatra</a> demonstrates how to
137
- serve Ovto app from Sinatra.</p>
133
+ <p><a href="./examples/sinatra">./examples/sinatra</a> demonstrates how to serve Ovto app
134
+ from Sinatra.</p>
138
135
 
139
- <h3 id="label-Ovto+-2B+Rails">Ovto + Rails</h3>
136
+ <h3>Ovto + Rails</h3>
140
137
 
141
- <p><a href="https://github.com/yhara/vision">yhara/vision</a> is a working
142
- example of using Ovto with Rails 5.</p>
138
+ <p><a href="https://github.com/yhara/vision">yhara/vision</a> is a working example of using Ovto with Rails 5.</p>
143
139
 
144
- <h2 id="label-Acknowledgements">Acknowledgements</h2>
145
- <ul><li>
146
- <p><a href="https://github.com/hyperapp/hyperapp">hyperapp</a></p>
147
- </li></ul>
140
+ <h2>Acknowledgements</h2>
148
141
 
149
- <h2 id="label-Contact">Contact</h2>
142
+ <ul>
143
+ <li><a href="https://github.com/hyperapp/hyperapp">hyperapp</a></li>
144
+ </ul>
150
145
 
151
- <p><a
152
- href="https://github.com/yhara/ovto/issues">github.com/yhara/ovto/issues</a></p>
146
+ <h2>Contact</h2>
147
+
148
+ <p><a href="https://github.com/yhara/ovto/issues">https://github.com/yhara/ovto/issues</a></p>
153
149
  </div></div>
154
150
 
155
151
  <div id="footer">
156
- Generated on Fri Apr 19 12:51:39 2019 by
152
+ Generated on Thu Aug 8 01:14:40 2019 by
157
153
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
158
154
  0.9.19 (ruby-2.5.5).
159
155
  </div>