0.0.14 • Published 2 years ago

@ampproject/bento-compiler v0.0.14

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
2 years ago

Bento Compiler

Server-render AMP Components with worker-dom.

Install

$ npm install --save @ampproject/bento-compiler

Usage

Visit the test cases for more info.

import {renderAst} from '@ampproject/bento-compiler';

function ampLayoutBuildDom(element) {
  element.setAttribute('i-amphtml-ssr', '');
}

const ast = h('html', {}, [h('body', {}, [h('amp-layout'))])]);
const rendered = renderAst(ast, {'amp-layout': ampLayoutBuildDom});

Analysis

See the analysis for details on how we measured expected performance improvement.

0.0.13

2 years ago

0.0.14

2 years ago

0.0.12

2 years ago

0.0.10

3 years ago

0.0.11

2 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago