Permalink
Browse files

Added versions, and updated the readme. Added data attribute flag

  • Loading branch information...
1 parent d40d899 commit a275d7f147d88702a86c3fc60021b30eeebdbe2e @stolksdorf committed Feb 7, 2014
Showing with 628 additions and 113 deletions.
  1. +6 −0 README.md
  2. +0 −97 demo/index.html
  3. +0 −4 demo/libs/backbone.js
  4. +0 −5 demo/libs/jq.js
  5. +0 −1 demo/libs/underscore.js
  6. 0 { → versions}/xo.experimental.js
  7. +306 −0 versions/xo.v0.1.js
  8. +308 −0 versions/xo.v0.2.js
  9. +8 −6 xo.js
View
@@ -4,6 +4,12 @@ Check out a demo [here](http://stolksdorf.github.io/XO).
XO (for exo-skeleton) is a very light weight Javascript MVC framework (under 300 lines!). Influenced by Backbone and built on top of [Archetype](http://stolksdorf.github.io/XO). XO focuses on exposing a series of tools, rather then being an emcompassing framework.
+# What's new
+### v0.2
+- Able to toggle the use of the `data-` prefix on html data ttributes through `xo.useDataPrefix`. Default to `false`.
+- Switch all language to resemble backbone more for destroying objects
+
+
# Events
Every object in XO is extended from an [Archetype](http://stolksdorf.github.io/Archetype) object, so it's both extendable and "event-y".
View
@@ -1,97 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
-<html>
-<head>
- <!-- Libraries -->
- <script type="text/javascript" src="libs/jq.js"></script>
- <script type="text/javascript" src="libs/underscore.js"></script>
- <script type="text/javascript" src="libs/backbone.js"></script>
-
-
- <script type="text/javascript" src="../xo.js"></script>
-</head>
-
-<body>
-
-
-
- <div class='temp'>
- <div xo-block='test' class='ss'>
- <span xo-element='awesome'>cool stuff</span>
- </div>
- </div>
-
- <div xo-schematic='test2'>
- more cool stuff
- </div>
-
- <div xo-block='test3' class='ss'>
- <span xo-element='awesome'>cool stuff</span>
- </div>
-
-
-
-</body>
-
-
-
-
-<script>
-
-
-
- var testBlock = XO.Block.extend({
- block : 'test',
-
- render : function(){
- var self = this;
- console.log('running');
-
- this.dom.block.click(function(){
- self.model.set('test', self.model.get('test') + 1);
-
- });
-
- this.dom.awesome.text('working');
-
- //this.dom.awesome.append(this.getSchematic('test2'));
-
- this.model.onChange('test', function(){
- self.dom.awesome.text('block working ' + self.model.get('test'));
- })
- }
-
-
-
- });
-
- var testSch = XO.Block.extend({
- schematic : 'test3',
-
- render : function(){
- var self = this;
-
-
- this.model.onChange('test', function(){
- self.dom.block.text('schematic working ' + self.model.get('test'));
- })
-
- }
-
-
- });
-
- var myModel = new XO.Model({ test : 0});
-
-
- var myBlock = new testBlock(myModel);
-
- var mySch = new testSch(myModel);
- mySch.injectInto($('.ss'));
-
-
-
-</script>
-
-
-
-</html>
View

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
File renamed without changes.
Oops, something went wrong.

0 comments on commit a275d7f

Please sign in to comment.