kyleaedwards / UnityJS

A very simple single-page application framework.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UnityJS

A very simple single-page application framework.

Usage

  1. Add unity.css as a stylesheet in your HTML's header.
  2. Define each page in your HTML by encapsulating its content in a div that has data-role="view" as an attribute.

If you plan to separate each page into its own HTML file you will need to use a build tool like Webpack to compile all your HTML into a single HTML file.

Note: There is no support for external html templates.

Example

See main.html for an example of how to use UnityJS.

How to run the example

Clone this repo and open main.html in your web browser.

About

A very simple single-page application framework.


Languages

Language:JavaScript 74.9%Language:HTML 23.7%Language:CSS 1.4%