Example mobile web app for the workshop "Forget Native: Learn to Write HTML5 Mobile Apps"
JavaScript CSS
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
css
images
js
templates
vendor
LICENSE
README.md
index.html
offline.manifest

README.md

WebChat

A mobile HTML5 Web App for the chatter service.

HTML Templates

All templates live in the templates directory and are compiled using underscore templates. If any file in this directory is added or changed, it must be compiled using bin/compile-templates before it can be used in the app. This script simply takes every file in the templates directory, runs it through the underscore template function, and outputs the resulting function to the global object Templates, with the key being whatever the file name was (i.e. a file called title.html would be accessible in Templates["title"]). This is done for performance reasons, to avoid having to compile templates each time the app is launched.