Skip to content

Commit df4c810

Browse files
committed
Remove commented code and update attribute names in demo files
- Removed commented script tag from CoCreate JS CDN in fetch.string.html - Changed attribute name "render-key" to "render-as" in index.html and render.object.html - Changed text from "render-key" to "render-as" in docs/index.html
1 parent 6b1ebc0 commit df4c810

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

demo/fetch.string.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ <h1>Paste in your browser console</h1>
4444
</pre>
4545

4646
<!-- CoCreate JS CDN -->
47-
<!--<script src="../dist/CoCreate-render-key.js"></script>-->
4847
<script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
4948
<!-- <script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script> -->
5049
</body>

demo/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ <h3 value="{{render2.data.personal_info.email}}"></h3>
5454
<div
5555
class="template card"
5656
render="render2.data.string_array"
57-
render-key="string">
57+
render-as="string">
5858
string - template
5959
<h3
6060
name="test"

demo/render.object.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
<div template="abc1">
2121
<!-- <div>{{data}}</div>
2222
<h1> {{document.collection}} {{document._id}}</h1> -->
23-
<div class="template" render="" render-key="one">
23+
<div class="template" render="" render-as="one">
2424
<h5>{{one.key}}: {{one.value}}</h5>
2525
</div>
2626
<div
2727
class="template"
2828
render="data[0].current_org"
29-
render-key="current_org"
29+
render-as="current_org"
3030
value="{{current_org}}">
3131
<h3>{{current_org}}</h3>
3232
</div>

docs/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ <h4 class="margin-top:20px padding:5px_0px">
222222
&lt;h3 value=&quot;{{render2.data.personal_info.email}}&quot;&gt;&lt;/h3&gt;
223223
&lt;/div&gt;
224224
&lt;div class=&quot;template card &quot;
225-
render=&quot;render2.data.string_array&quot; render-key=&quot;string_&quot;&gt;
225+
render=&quot;render2.data.string_array&quot; render-as=&quot;string_&quot;&gt;
226226

227227
&lt;h3 name=&quot;test&quot;
228228
data-attribute=&quot;{{string_.--}}&quot;
@@ -313,7 +313,7 @@ <h4>
313313
<li
314314
class="padding:15px_0px border-bottom:1px_solid_lightgrey">
315315
<h4>
316-
<span>render-key</span>
316+
<span>render-as</span>
317317
<span class="cocreate-badge warning"
318318
>optional</span
319319
><span class="cocreate-badge"

0 commit comments

Comments
 (0)