Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Nelson committed Jan 13, 2024
1 parent 2df8a5c commit dbf40fc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
<script type="importmap">
{
"imports": {
"phx-live-state": "https://ga.jspm.io/npm:[email protected].1/build/src/index.js",
"phx-live-state": "https://ga.jspm.io/npm:[email protected].2/build/src/index.js",
"template-parts": "https://ga.jspm.io/npm:[email protected]/template-parts.js",
"templize/templize.js": "https://ga.jspm.io/npm:[email protected]/templize.js"
"templize/templize.js": "https://ga.jspm.io/npm:[email protected]/templize.js",
"wc-context": "https://ga.jspm.io/npm:[email protected]/core.js"
},
"scopes": {
"https://ga.jspm.io/": {
Expand All @@ -17,8 +18,7 @@
"reflect-metadata": "https://ga.jspm.io/npm:[email protected]/Reflect.js",
"sube": "https://ga.jspm.io/npm:[email protected]/sube.js",
"subscript": "https://ga.jspm.io/npm:[email protected]/subscript.js",
"subscript/parse.js": "https://ga.jspm.io/npm:[email protected]/parse.js",
"wc-context": "https://ga.jspm.io/npm:[email protected]/core.js"
"subscript/parse.js": "https://ga.jspm.io/npm:[email protected]/parse.js"
}
}
}
Expand All @@ -28,7 +28,7 @@
</script>
</head>
<body>
<live-template url="wss://live-templates-example.fly.dev/live_state" topic="todo:all">
<live-template url="ws://localhost:4000/socket" topic="todo:all" provide-context="mrstate">
<template>
<ul>
<li :each="{{todo in todos}}">{{todo}}</li>
Expand All @@ -41,5 +41,9 @@
</template>
<div>some fallback content</div>
</live-template>
<live-template consume-context="mrstate">

<div :each="{{todo in todos}}">{{todo}}</div>
</live-template>
</body>
</html>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "",
"license": "MIT",
"author": "live-template",
"version": "0.0.2",
"version": "0.1.0",
"type": "module",
"main": "index.js",
"module": "index.js",
Expand Down

0 comments on commit dbf40fc

Please sign in to comment.