You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-8
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
# `<live-template>`
2
2
3
-
A `<live-template>` connects a template to a state source (currently provided by [LiveState] ). After connecting to a LiveState backend, it will:
3
+
A `<live-template>`element connects a template to a state source (currently provided by [LiveState] ). After connecting to a LiveState channel, it will:
4
4
5
5
* render the initial state
6
-
* subscribe to state changes and re-renders
7
-
* pushes events to the state source which may then compute a new state
6
+
* subscribe to state updates and re-render on changes
7
+
* pushes events to a Livestate backend which may then compute a new state
8
8
9
9
## Getting started
10
10
@@ -14,9 +14,9 @@ The easiest way to start is to open an html file and add a `<live-template>` ele
@@ -27,11 +27,11 @@ The easiest way to start is to open an html file and add a `<live-template>` ele
27
27
</live-template>
28
28
```
29
29
30
-
You should be to open this file in your browser and it will connect to the example app backend.
30
+
You should be to open this file in your browser and it will connect to the example app backend. Feel free to experiment!
31
31
32
32
## How it works
33
33
34
-
<live-templates> are designed to connect to a LiveState backend. LiveState is built on the same excellent technology stack that powers LiveView: Phoenix Channels, Phoenix, Elixir, and Erlang. This allows us to host the persistent conversational state of every user connected to a LiveTemplate application in a way that scales efficiently across millions of connected users.
34
+
The `<live-template>` element is designed to connect to a LiveState backend. LiveState is built on the same excellent technology stack that powers LiveView: Phoenix Channels, Phoenix, Elixir, and Erlang. This allows us to host the persistent conversational state of every user connected to a LiveTemplate application in a way that scales efficiently across millions of connected users.
The template syntax is provided by the [templize]() library. Expressions are surrounded by `{{}}` and may contain the following:
55
+
The template syntax is provided by the [templize](https://github.com/dy/templize) library. Expressions are surrounded by `{{}}`. See templize docs for all supported feature.
0 commit comments