Skip to content

Commit

Permalink
chore: update docs with preset loader in homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
puria committed Aug 2, 2024
1 parent 233d2d1 commit d11fd26
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,22 +300,11 @@ sidebar: false
</div>
<h3 class="try-title">Try it out! ⬇️</h3>
<div class="slangroom-editor-container">
<dyne-slangroom-editor
contract="Rule unknown ignore
# This is executed by slangroom
Given I connect to 'address' and do get and output into 'result'
# Here we run zenroom
Given I have a 'string dictionary' named 'result'
# Here zenroom hashes the result
When I create the hash of 'result'
# Here we print the output
Then print the 'hash'
Then print the 'result'"
data='{
"address": "https://did.dyne.org/dids/did:dyne:sandbox.genericissuer:9sz8ZTztc4gsivLQyBJ5hVkbMBJZDHxrEFwjqAk17U9s"
}'
keysMode='none'
></dyne-slangroom-editor>
<dyne-slangroom-editor id="slangroom-editor" keysMode='none'>
<dyne-slangroom-preset-loader slot="topbar-right" editor-id="slangroom-editor">
<dyne-slangroom-preset group="helpers" name="Preset Element Test" contract="Test" data="Test"></dyne-slangroom-preset>
</dyne-slangroom-preset-loader>
</dyne-slangroom-editor>
</div>
</div>
</div>
Expand Down

0 comments on commit d11fd26

Please sign in to comment.