atsml

1.0.0 • Public • Published

ATSML

Advanced TypeScript Markup Language

About

ATSML is a lightweight ESM library for creating reactive web applications.

[!WARNING] ATSML is still under development.

Examples

Counter

This code creates a reactive button that counts the number of times it has been clicked.

import { Reactive, addChild, button, tag } from 'atsml'

let counter = new Reactive(0)
const btn = button(['count: ', counter], {}, e => counter.value++)
addChild(
  document.body,
  [
    tag(
      'p',
      [
        'Click the button to increment its value!'
      ],
    ),
    btn,
  ],
)

Contributing

All contributions are welcome!

/atsml/

    Package Sidebar

    Install

    npm i atsml

    Weekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    5.07 kB

    Total Files

    4

    Last publish

    Collaborators

    • fract