@ossph/temple-server
v0.0.12
Published
Server library that Temple server uses to manage data in different ways.
Downloads
4
Readme
⛩️ Temple Client
This package is designed for Temple, the reactive web component template engine. See docs for more information.
Browser library that Temple scripts can use to manage data in different ways.
Install
$ npm -i @ossph/temple-client
Usage
import { props, signal } from '@ossph/temple-client'
Props
<!-- page.html -->
<script>
import { props } from '@ossph/temple';
type PageProps = { name: string };
const { name } = props<PageProps>();
</script>
<h1>Hello {name}</h1>
Signal
<!-- page.html -->
<script>
import { signal } from '@ossph/temple';
const name = signal<string>('world');
name.value += '!';
</script>
<h1>Hello {name.value}</h1>