ovto 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +1 -0
- data/.gitmodules +3 -0
- data/CHANGELOG.md +22 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +57 -0
- data/LICENSE.txt +44 -0
- data/README.md +84 -0
- data/Rakefile +41 -0
- data/book/README.md +1 -0
- data/book/SUMMARY.md +13 -0
- data/book/api/actions.md +77 -0
- data/book/api/app.md +86 -0
- data/book/api/component.md +175 -0
- data/book/api/fetch.md +42 -0
- data/book/api/state.md +97 -0
- data/book/guides/debugging.md +23 -0
- data/book/guides/development.md +11 -0
- data/book/guides/tutorial.md +288 -0
- data/book/screenshot.png +0 -0
- data/docs/api/Ovto/Actions.html +135 -0
- data/docs/api/Ovto/App.html +531 -0
- data/docs/api/Ovto/Component/MoreThanOneNode.html +135 -0
- data/docs/api/Ovto/Component.html +350 -0
- data/docs/api/Ovto/Runtime.html +315 -0
- data/docs/api/Ovto/State/MissingValue.html +135 -0
- data/docs/api/Ovto/State/UnknownKey.html +135 -0
- data/docs/api/Ovto/State.html +699 -0
- data/docs/api/Ovto/WiredActions.html +343 -0
- data/docs/api/Ovto.html +319 -0
- data/docs/api/_index.html +229 -0
- data/docs/api/actions.html +398 -0
- data/docs/api/app.html +411 -0
- data/docs/api/class_list.html +51 -0
- data/docs/api/component.html +469 -0
- data/docs/api/css/common.css +1 -0
- data/docs/api/css/full_list.css +58 -0
- data/docs/api/css/style.css +499 -0
- data/docs/api/file.README.html +162 -0
- data/docs/api/file_list.html +56 -0
- data/docs/api/frames.html +17 -0
- data/docs/api/index.html +162 -0
- data/docs/api/js/app.js +248 -0
- data/docs/api/js/full_list.js +216 -0
- data/docs/api/js/jquery.js +4 -0
- data/docs/api/method_list.html +243 -0
- data/docs/api/state.html +430 -0
- data/docs/api/top-level-namespace.html +110 -0
- data/docs/gitbook/fonts/fontawesome/FontAwesome.otf +0 -0
- data/docs/gitbook/fonts/fontawesome/fontawesome-webfont.eot +0 -0
- data/docs/gitbook/fonts/fontawesome/fontawesome-webfont.svg +685 -0
- data/docs/gitbook/fonts/fontawesome/fontawesome-webfont.ttf +0 -0
- data/docs/gitbook/fonts/fontawesome/fontawesome-webfont.woff +0 -0
- data/docs/gitbook/fonts/fontawesome/fontawesome-webfont.woff2 +0 -0
- data/docs/gitbook/gitbook-plugin-fontsettings/fontsettings.js +240 -0
- data/docs/gitbook/gitbook-plugin-fontsettings/website.css +291 -0
- data/docs/gitbook/gitbook-plugin-highlight/ebook.css +135 -0
- data/docs/gitbook/gitbook-plugin-highlight/website.css +434 -0
- data/docs/gitbook/gitbook-plugin-lunr/lunr.min.js +7 -0
- data/docs/gitbook/gitbook-plugin-lunr/search-lunr.js +59 -0
- data/docs/gitbook/gitbook-plugin-search/lunr.min.js +7 -0
- data/docs/gitbook/gitbook-plugin-search/search-engine.js +50 -0
- data/docs/gitbook/gitbook-plugin-search/search.css +35 -0
- data/docs/gitbook/gitbook-plugin-search/search.js +213 -0
- data/docs/gitbook/gitbook-plugin-sharing/buttons.js +90 -0
- data/docs/gitbook/gitbook.js +4 -0
- data/docs/gitbook/images/apple-touch-icon-precomposed-152.png +0 -0
- data/docs/gitbook/images/favicon.ico +0 -0
- data/docs/gitbook/style.css +9 -0
- data/docs/gitbook/theme.js +4 -0
- data/docs/guides/debugging.html +355 -0
- data/docs/guides/development.html +361 -0
- data/docs/guides/tutorial.html +571 -0
- data/docs/index.html +422 -0
- data/docs/screenshot.png +0 -0
- data/docs/search_index.json +1 -0
- data/example/sinatra/Gemfile +6 -0
- data/example/sinatra/Gemfile.lock +59 -0
- data/example/sinatra/README.md +21 -0
- data/example/sinatra/app.rb +18 -0
- data/example/sinatra/config.ru +30 -0
- data/example/sinatra/ovto/app.rb +171 -0
- data/example/sinatra/public/style.css +4 -0
- data/example/sinatra/public/todomvc-app-css_index.css +376 -0
- data/example/sinatra/public/todomvc-common_base.css +141 -0
- data/example/sinatra/views/index.erb +21 -0
- data/example/static/Gemfile +3 -0
- data/example/static/Gemfile.lock +30 -0
- data/example/static/README.md +10 -0
- data/example/static/Rakefile +4 -0
- data/example/static/app.js +24808 -0
- data/example/static/app.rb +43 -0
- data/example/static/index.html +11 -0
- data/lib/ovto/actions.rb +10 -0
- data/lib/ovto/app.rb +58 -0
- data/lib/ovto/component.rb +191 -0
- data/lib/ovto/fetch.rb +53 -0
- data/lib/ovto/runtime.rb +388 -0
- data/lib/ovto/state.rb +69 -0
- data/lib/ovto/version.rb +3 -0
- data/lib/ovto/wired_actions.rb +33 -0
- data/lib/ovto.rb +50 -0
- data/ovto.gemspec +22 -0
- data/screenshot.png +0 -0
- metadata +161 -0
@@ -0,0 +1,355 @@
|
|
1
|
+
|
2
|
+
<!DOCTYPE HTML>
|
3
|
+
<html lang="" >
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
|
7
|
+
<title>Debugging · GitBook</title>
|
8
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
9
|
+
<meta name="description" content="">
|
10
|
+
<meta name="generator" content="GitBook 3.2.3">
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../gitbook/style.css">
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
<link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
<link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
<link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
<meta name="HandheldFriendly" content="true"/>
|
53
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
54
|
+
<meta name="apple-mobile-web-app-capable" content="yes">
|
55
|
+
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
56
|
+
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
|
57
|
+
<link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
|
58
|
+
|
59
|
+
|
60
|
+
<link rel="next" href="development.html" />
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
</head>
|
65
|
+
<body>
|
66
|
+
|
67
|
+
<div class="book">
|
68
|
+
<div class="book-summary">
|
69
|
+
|
70
|
+
|
71
|
+
<div id="book-search-input" role="search">
|
72
|
+
<input type="text" placeholder="Type to search" />
|
73
|
+
</div>
|
74
|
+
|
75
|
+
|
76
|
+
<nav role="navigation">
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
<ul class="summary">
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
<li class="chapter " data-level="1.1" data-path="../">
|
91
|
+
|
92
|
+
<a href="../">
|
93
|
+
|
94
|
+
|
95
|
+
Introduction
|
96
|
+
|
97
|
+
</a>
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
</li>
|
102
|
+
|
103
|
+
<li class="chapter " data-level="1.2" data-path="tutorial.html">
|
104
|
+
|
105
|
+
<a href="tutorial.html">
|
106
|
+
|
107
|
+
|
108
|
+
Getting Started
|
109
|
+
|
110
|
+
</a>
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
</li>
|
115
|
+
|
116
|
+
<li class="chapter " data-level="1.3" >
|
117
|
+
|
118
|
+
<span>
|
119
|
+
|
120
|
+
|
121
|
+
API
|
122
|
+
|
123
|
+
</span>
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
<ul class="articles">
|
128
|
+
|
129
|
+
|
130
|
+
<li class="chapter " data-level="1.3.1" data-path="../api/app.html">
|
131
|
+
|
132
|
+
<a href="../api/app.html">
|
133
|
+
|
134
|
+
|
135
|
+
App
|
136
|
+
|
137
|
+
</a>
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
</li>
|
142
|
+
|
143
|
+
<li class="chapter " data-level="1.3.2" data-path="../api/state.html">
|
144
|
+
|
145
|
+
<a href="../api/state.html">
|
146
|
+
|
147
|
+
|
148
|
+
State
|
149
|
+
|
150
|
+
</a>
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
</li>
|
155
|
+
|
156
|
+
<li class="chapter " data-level="1.3.3" data-path="../api/actions.html">
|
157
|
+
|
158
|
+
<a href="../api/actions.html">
|
159
|
+
|
160
|
+
|
161
|
+
Actions
|
162
|
+
|
163
|
+
</a>
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
</li>
|
168
|
+
|
169
|
+
<li class="chapter " data-level="1.3.4" data-path="../api/component.html">
|
170
|
+
|
171
|
+
<a href="../api/component.html">
|
172
|
+
|
173
|
+
|
174
|
+
Component
|
175
|
+
|
176
|
+
</a>
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
</li>
|
181
|
+
|
182
|
+
|
183
|
+
</ul>
|
184
|
+
|
185
|
+
</li>
|
186
|
+
|
187
|
+
<li class="chapter " data-level="1.4" >
|
188
|
+
|
189
|
+
<span>
|
190
|
+
|
191
|
+
|
192
|
+
Guides
|
193
|
+
|
194
|
+
</span>
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
<ul class="articles">
|
199
|
+
|
200
|
+
|
201
|
+
<li class="chapter active" data-level="1.4.1" data-path="debugging.html">
|
202
|
+
|
203
|
+
<a href="debugging.html">
|
204
|
+
|
205
|
+
|
206
|
+
Debugging
|
207
|
+
|
208
|
+
</a>
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
</li>
|
213
|
+
|
214
|
+
<li class="chapter " data-level="1.4.2" data-path="development.html">
|
215
|
+
|
216
|
+
<a href="development.html">
|
217
|
+
|
218
|
+
|
219
|
+
Development
|
220
|
+
|
221
|
+
</a>
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
</li>
|
226
|
+
|
227
|
+
|
228
|
+
</ul>
|
229
|
+
|
230
|
+
</li>
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
<li class="divider"></li>
|
236
|
+
|
237
|
+
<li>
|
238
|
+
<a href="https://www.gitbook.com" target="blank" class="gitbook-link">
|
239
|
+
Published with GitBook
|
240
|
+
</a>
|
241
|
+
</li>
|
242
|
+
</ul>
|
243
|
+
|
244
|
+
|
245
|
+
</nav>
|
246
|
+
|
247
|
+
|
248
|
+
</div>
|
249
|
+
|
250
|
+
<div class="book-body">
|
251
|
+
|
252
|
+
<div class="body-inner">
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
<div class="book-header" role="navigation">
|
257
|
+
|
258
|
+
|
259
|
+
<!-- Title -->
|
260
|
+
<h1>
|
261
|
+
<i class="fa fa-circle-o-notch fa-spin"></i>
|
262
|
+
<a href=".." >Debugging</a>
|
263
|
+
</h1>
|
264
|
+
</div>
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
<div class="page-wrapper" tabindex="-1" role="main">
|
270
|
+
<div class="page-inner">
|
271
|
+
|
272
|
+
<div id="book-search-results">
|
273
|
+
<div class="search-noresults">
|
274
|
+
|
275
|
+
<section class="normal markdown-section">
|
276
|
+
|
277
|
+
<h1 id="debugging-ovto-app">Debugging Ovto app</h1>
|
278
|
+
<h2 id="ovto-debug">ovto-debug</h2>
|
279
|
+
<p>If the page has a tag with <code>id='ovto-debug'</code>, exception is shown in the tag.</p>
|
280
|
+
|
281
|
+
|
282
|
+
</section>
|
283
|
+
|
284
|
+
</div>
|
285
|
+
<div class="search-results">
|
286
|
+
<div class="has-results">
|
287
|
+
|
288
|
+
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
|
289
|
+
<ul class="search-results-list"></ul>
|
290
|
+
|
291
|
+
</div>
|
292
|
+
<div class="no-results">
|
293
|
+
|
294
|
+
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
|
295
|
+
|
296
|
+
</div>
|
297
|
+
</div>
|
298
|
+
</div>
|
299
|
+
|
300
|
+
</div>
|
301
|
+
</div>
|
302
|
+
|
303
|
+
</div>
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
|
308
|
+
<a href="development.html" class="navigation navigation-next navigation-unique" aria-label="Next page: Development">
|
309
|
+
<i class="fa fa-angle-right"></i>
|
310
|
+
</a>
|
311
|
+
|
312
|
+
|
313
|
+
|
314
|
+
</div>
|
315
|
+
|
316
|
+
<script>
|
317
|
+
var gitbook = gitbook || [];
|
318
|
+
gitbook.push(function() {
|
319
|
+
gitbook.page.hasChanged({"page":{"title":"Debugging","level":"1.4.1","depth":2,"next":{"title":"Development","level":"1.4.2","depth":2,"path":"guides/development.md","ref":"guides/development.md","articles":[]},"previous":{"title":"Guides","level":"1.4","depth":1,"ref":"","articles":[{"title":"Debugging","level":"1.4.1","depth":2,"path":"guides/debugging.md","ref":"guides/debugging.md","articles":[]},{"title":"Development","level":"1.4.2","depth":2,"path":"guides/development.md","ref":"guides/development.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":"guides/debugging.md","mtime":"2018-05-16T08:17:31.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-06-01T12:07:18.151Z"},"basePath":"..","book":{"language":""}});
|
320
|
+
});
|
321
|
+
</script>
|
322
|
+
</div>
|
323
|
+
|
324
|
+
|
325
|
+
<script src="../gitbook/gitbook.js"></script>
|
326
|
+
<script src="../gitbook/theme.js"></script>
|
327
|
+
|
328
|
+
|
329
|
+
<script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
<script src="../gitbook/gitbook-plugin-search/search.js"></script>
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
<script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
<script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
<script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
<script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
</body>
|
354
|
+
</html>
|
355
|
+
|