Skip to content

Instantly share code, notes, and snippets.

@charlesjolley
Created November 4, 2010 23:22
Show Gist options
  • Save charlesjolley/663388 to your computer and use it in GitHub Desktop.
Save charlesjolley/663388 to your computer and use it in GitHub Desktop.
Simple App for Strobe

Big Idea

Pushing an app to strobe requires you meet just a few basic requirements:

  1. You must have an index.html file at the root directory and a 'static' directory with static assets you want hosted on the CDN
  2. For an app manifest, the file should be called *.manifest and should live next to the index.html file.
  3. For localizations, add a language folder with an index.html inside it at the root level. If you use an app manifest, place it in the language folder next to the index.html. Localized static assets should appear in the static directory inside a language folder
  4. You should also have a deploy.json at the root level where you can state deployment options.

Note that when we deploy, we will look for a tag in your index.html and rewrite it to put the static assets on theCDN. If you do not include a base tag one will be added for you just inside the

Example - Hand Made

/hello_world
  index.html
  app.manifest
  static/
     jquery.js
     myapp.js
     styles.css
<DOCTYPE html>
<html manifest="app.manifest">
<head>
<base url="/static">
<title>Hello App</title>
<link rel="stylesheet" url="styles.css">
</head>
<body>
<div id="loading">
<h1>Loading...</h1>
</div>
<script src="jquery.js" type="text/javascript"></script>
<script src="myapp.js" type="text/javascript"></script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment