Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

105 lines (74 sloc) 2.173 kb

Frame5 - HTML5 Framework

Frame5 is an attempt creating an HTML5 framework. Under the umbrella standard HTML5 a lot of technological are at play. Frame5's goal is to bring together as many of the specs as it can.

Wish List

Have

Need

Links

Main

How to use

The Server

Install with NPM

npm install frame5
var express = require('express');
var Frame5 = require('../');

var app = module.exports = express.createServer(express.static(__dirname));

var f5 = new Frame5(app);

f5.on('rpc', function(rpc) {
    rpc.expose('chat', {
        msg : function(msg, name) {
            var self = this;
            rpc.broadcast('chat.msg', [msg, name], function() {
                self.send();
            });
        }
    });
    rpc.ready();
});

app.listen(8080);

The Client

<!DOCTYPE html>
<html>

    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>Frame5</title>
        <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
        <script src="/frame5"></script>
    </head>

    <body>
    <script>
        console.log(Frame5);
    </script>
    </body>
</html>

Versioning

Releases will be numbered with the follow format:

<major>.<minor>.<patch>

And constructed with the following guidelines:

  • Breaking backward compatibility bumps the major (and resets the minor and patch)
  • New additions without breaking backward compatibility bumps the minor (and resets the patch)
  • Bug fixes and misc changes bumps the patch

For more information on SemVer, please visit http://semver.org/.

Jump to Line
Something went wrong with that request. Please try again.