index.html 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>{%= title %}</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
  6. <meta name="author" content="{%= author_name %}"/>
  7. <script type='text/javascript' src='the.js'></script>
  8. </head>
  9. <body>
  10. <!-- EXAMPLE APP START -->
  11. <p>This is a sample app. It contains some
  12. <a href="parts.html">batteries included</a>
  13. and should be
  14. <a href="uninstall.html">cleaned up</a>
  15. once you start developing your own app / lib.</p>
  16. <button id="amber-with">Hello from TagBrush >> with:</button>
  17. <button id="silk-tag">Hello from Silk >> TAG:</button>
  18. <button id="jquery-append">Hello from jQuery append</button>
  19. <ol id="output-list"></ol>
  20. <!-- EXAMPLE APP END -->
  21. <script type='text/javascript'>
  22. require(['app'], function (amberPromise) {
  23. amberPromise.then(function (amber) {
  24. amber.initialize({
  25. //used for all new packages in IDE
  26. 'transport.defaultAmdNamespace': "{%= namespace %}"
  27. }).then(function () {
  28. require(["amber-ide-starter-dialog"], function (dlg) {
  29. dlg.start();
  30. });
  31. amber.globals.{%= name %}._start();
  32. });
  33. });
  34. });
  35. </script>
  36. </body>
  37. </html>