Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 3 additions & 13 deletions examples/hello-world.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,8 @@ order: 1
---

```javascript
new helloworld, stdout(`rho:io:stdout`) in {
contract helloworld( world ) = {
for( @msg <- world )
{ stdout!(msg) }
}

| new world, world2 in {
helloworld!(*world)
| world!("Hello World")
| helloworld!(*world2)
| world2!("Hello World again")
}
}
new world in {
world!("Hello!")
}

```
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"gh-pages": "^2.2.0",
"gridsome": "^0.7.18",
"marked": "^0.6.1",
"rchain-api": "../RChain-API/",
"typography": "^0.16.18",
"vue-atlas": "^2.1.8",
"vue-instantsearch": "^2.0.0",
Expand Down
7 changes: 6 additions & 1 deletion src/components/Examples.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,20 @@
v-for="({ node }, index) in $static.examples.edges"
v-if="index == current"
:key="index">
<div v-html="node.content" />
<ExampleTry v-bind:pretty="node.content" />
</div>
</transition>
</div>
</div>
</template>

<script>
import ExampleTry from './ExampleTry';

export default {
components: {
ExampleTry
},
data() {
return {
current: 0
Expand Down