Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Hello World in amp4email
<!doctype html>
<html amp4email>
<meta charset="utf-8">
<script async src=""></script>
<script async custom-element="amp-bind" src=""></script>
<style amp4email-boilerplate>body { visibility:hidden }</style>
<h1 [text]="'Bonjour ' + state.username + '&nbsp;!'">
<input on="input-throttled:AMP.setState({state:{username: event.value}})" />
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aspernatur autem adipisci iure id alias consequatur. Ex nostrum deserunt nihil blanditiis vero, laborum mollitia, ea aspernatur delectus, tempore, labore autem quisquam.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.