volt 0.5.11 → 0.5.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Readme.md +17 -6
- data/VERSION +1 -1
- data/lib/volt/server/template_parser.rb +1 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f19d9b087e92a7d11e184662f25bbbb41782c4de
|
4
|
+
data.tar.gz: ff8cda82e933cfe5847bc6baf20c7038f4069da3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f70e827dc38aca5ab62eff2e979ba6316bb92eac6d816b68f16e186eec380cda0717a719b64b769b467c5460c9a8cc56b1935b2316ee227a5cc0fa465d0a3fe
|
7
|
+
data.tar.gz: fc503dcb377335d09d1c2ff711f1624348f7d00486f34e8cf25651bf6da6a25f48f8f89ec65f8353a65548d05ca0164b7961b7c2902d76924f09e355ced8ceda
|
data/Readme.md
CHANGED
@@ -60,7 +60,8 @@ You can access the volt console with:
|
|
60
60
|
|
61
61
|
# Guide Sections
|
62
62
|
|
63
|
-
1. [
|
63
|
+
1. [Getting Help](#getting-help)
|
64
|
+
2. [Rendering](#rendering)
|
64
65
|
1. [Reactive Values](#reactive-values)
|
65
66
|
1. [ReactiveValue Gotchyas](#reactivevalue-gotchyas)
|
66
67
|
2. [Bindings](#bindings)
|
@@ -68,23 +69,33 @@ You can access the volt console with:
|
|
68
69
|
2. [If Binding](#if-binding)
|
69
70
|
3. [Each Binding](#each-binding)
|
70
71
|
4. [Attribute Bindings](#attribute-bindings)
|
71
|
-
|
72
|
+
3. [Models](#models)
|
72
73
|
1. [Provided Collections](#provided-collections)
|
73
74
|
2. [Reactive Models](#reactive-models)
|
74
75
|
3. [Model Events](#model-events)
|
75
76
|
4. [Automatic Model Conversion](#automatic-model-conversion)
|
76
|
-
|
77
|
-
|
77
|
+
4. [Controllers](#controllers)
|
78
|
+
5. [Components](#components)
|
78
79
|
1. [Assets](#assets)
|
79
80
|
2. [Component Generator](#component-generator)
|
80
81
|
3. [Provided Components](#provided-components)
|
81
82
|
1. [Notices](#notices)
|
82
83
|
2. [Flash](#flash)
|
83
|
-
|
84
|
-
|
84
|
+
6. [Controls](#controls)
|
85
|
+
7. [Routes](#routes)
|
85
86
|
1. [Routes file](#routes-file)
|
86
87
|
|
87
88
|
|
89
|
+
# Getting Help
|
90
|
+
|
91
|
+
Volt is still a work in progress, but early feedback is appericiated. Use the following to communicate with the developers, someone will get back to you very quickly:
|
92
|
+
|
93
|
+
- **If you need help**: post on [stackoverflow.com](http://www.stackoverflow.com), be sure to tag your question with voltrb
|
94
|
+
- **If you found a bug**: post on [github issues](https://github.com/voltrb/volt/issues)
|
95
|
+
- **If you have an idea or need a feature**: post on [github issues](https://github.com/voltrb/volt/issues)
|
96
|
+
- **If you want to discuss volt**: use #voltrb on freenode.
|
97
|
+
|
98
|
+
|
88
99
|
# Rendering
|
89
100
|
|
90
101
|
When a user interacts with a web page, typically we want to do two things:
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.12
|
@@ -409,12 +409,11 @@ class TemplateParser
|
|
409
409
|
@template_path = template_path
|
410
410
|
|
411
411
|
template_fragment = Nokogiri::HTML::DocumentFragment.parse(template)
|
412
|
-
|
413
412
|
# Add templates for each section
|
414
413
|
|
415
414
|
# Check for sections
|
416
415
|
sections = []
|
417
|
-
if template_fragment.children[0].name[0] == ':'
|
416
|
+
if (first_child = template_fragment.children[0]) && first_child.name[0] == ':'
|
418
417
|
template_fragment.children.each do |child|
|
419
418
|
if child.is_a?(Nokogiri::XML::Element)
|
420
419
|
sections << [child, child.name[1..-1]]
|