@heximal/components
TypeScript icon, indicating that this package has built-in type declarations

0.1.5 • Public • Published

Heximal Components

The core built-in components for Heximal

Components

  • <h-var>: Declares a variable
  • <h-out>: Displays the value of an expression
  • <h-scope>: Creates a nested scope for h-var variables
  • <h-include>: Include HTML files into your document
  • <h-fetch>: Fetch a network resource

Auto Templates

Auto templates are immediately rendered in-place without being part of a component or called from another template. They are declared with the h-auto attribute.

Auto templates are neccessary to be able to use bindings in the main document without rendering the text of the bidning expression. The expressions are stripped before rendering, and replaced with their values.

Auto-templates are also run as a signal effect, so that they update whenever any signals that they depend on change. <h-var> and the fields of built-in components are backed-by signals so that changes to them can be tracked.

<template h-auto>
  <h1>Hello, {{ name }}</h1>
</template>

Readme

Keywords

none

Package Sidebar

Install

npm i @heximal/components

Weekly Downloads

20

Version

0.1.5

License

MIT

Unpacked Size

90.9 kB

Total Files

43

Last publish

Collaborators

  • justinfagnani