vsn 0.1.45 → 0.1.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/demo/demo.html CHANGED
@@ -74,6 +74,11 @@
74
74
  <span>Hello, world!</span>
75
75
  </template>
76
76
 
77
+ <div>
78
+ <textarea id="example-code" rows="10" cols="50"></textarea>
79
+ <div id="example-output" vsn-bind:@html="#example-code.@value"></div>
80
+ </div>
81
+
77
82
  <template vsn-template id="query-operator-example-item">
78
83
  <li vsn-list-item>
79
84
  <span vsn-if="'active' in ?(:parent).@class">active</span>
@@ -84,14 +89,6 @@
84
89
  </li>
85
90
  </template>
86
91
 
87
- <script>
88
- function bindings () {
89
- $('#something').on('click', function () {
90
- $('#something').text('Hello, world!');
91
- });
92
- }
93
- </script>
94
-
95
92
  <div id="test-container"></div>
96
93
  <a href="./markup.html" vsn-on:click|preventdefault="#test-container.@html = << @href">Fill Container</a>
97
94
  <a vsn-on:click|preventdefault="#test-container.@html = ''">Clear Container</a>
@@ -181,6 +178,7 @@
181
178
  <button vsn-on:click="list.remove(item)">X</button>
182
179
  </li>
183
180
  <li vsn-list-item>
181
+ <span vsn-name="wut" vsn-set:wut.test="1">Wut</span>
184
182
  <span vsn-bind="item.name">Joe</span>, <span vsn-bind="item.age">91</span> Years Old <input type="text"
185
183
  vsn-bind="item.name"/>
186
184
  <input type="text" vsn-bind="item.age"/>
package/demo/markup.html CHANGED
@@ -1,2 +1,2 @@
1
1
  <h1>Markup Test</h1>
2
- <p>This is a paragraph.</p>
2
+ <p vsn-on:click="@text = 'This paragraph was clicked'">This is a paragraph.</p>