Skip to content

About

Server-render AMP Components with worker-dom

Resources

Code of conduct

Stars

10 stars

Watchers

2 watching

Forks

Repository files navigation

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.

About

Server-render AMP Components with worker-dom

Resources

Code of conduct

Stars

10 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages