Etcher v2.1.0 Alpha Published

TheCommieAxolotl
January 10, 2023

Etcher v2.1.0 brings some major rewrites, a new control flow directive format and new abilities for interpolation.

<!-- v2.0.5 FORMAT -->

{@if true}
    <div>true</div>
{@endif}

<!-- v2.1.0 FORMAT -->

{@if true}
    <div>true</div>
{:else}
    <div>false</div>
{/if}

Batteries Included

By default, etcher now exposes the main transform method under the Window.etcher namespace.

/* page.js */

const content = `<div>Hello There!</div>`

const tag = `my-component`

window.etcher.transform(content, tag)
<!-- index.html -->

<my-component></my-component>