You will be able to embed a Dart program directly on an HTML page, or you will be able to use a
#import
or #source
statement to pull in external files. Here is the proposed new MIME type, “application/dart”: <html> <body> <script type="application/dart"> main() { Element element = document.getElementById('message'); element.innerHTML = 'Hello from Dart'; } </script> <div id="message"></div> </body> </html>
No comments:
Post a Comment