entangle-standalone

1.0.6 • Public • Published

entangle-standalone

Build standalone HTML files from an Entangle doc.

I built this to try incorporating reactive documents in my blog (WIP).

Example

examples/cookies.entangle

# Cookies

If you eat `${cookies} cookies`, you will consume `${calories} calories`, or `${percent}%` of your recommended daily intake.

---

cookies:
  class: TKAdjustableNumber
  min: 0
  max: 10
  initial: 3
percent:
  format: "%.0f"

---

update = ({cookies}) ->
  calories: cookies*50,
  percent: cookies*2.38

Compile it with...

npm install
npm run build -- examples/cookies.entangle

Then open dist/document.html.

Readme

Keywords

none

Package Sidebar

Install

npm i entangle-standalone

Weekly Downloads

1

Version

1.0.6

License

MIT

Unpacked Size

309 kB

Total Files

15

Last publish

Collaborators

  • rexgarland