Created
March 27, 2019 10:55
-
-
Save hteumeuleu/26448440de01bddc86cb85abfea49def to your computer and use it in GitHub Desktop.
Hello World in amp4email
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html amp4email> | |
<head> | |
<meta charset="utf-8"> | |
<script async src="https://cdn.ampproject.org/v0.js"></script> | |
<script async custom-element="amp-bind" src="https://cdn.ampproject.org/v0/amp-bind-0.1.js"></script> | |
<style amp4email-boilerplate>body { visibility:hidden }</style> | |
</head> | |
<body> | |
<h1 [text]="'Bonjour ' + state.username + ' !'"> | |
Bonjour ! | |
</h1> | |
<input on="input-throttled:AMP.setState({state:{username: event.value}})" /> | |
<p> | |
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. | |
</p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment