0.0.12 • Published 1 year ago

@ossph/temple-server v0.0.12

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

⛩️ 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>
0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago