Evan You 13 лет назад
Родитель
Сommit
3d99d8fc9a
4 измененных файлов с 7 добавлено и 6 удалено
  1. 5 3
      README.md
  2. 0 1
      TODO.md
  3. 1 1
      src/directives/index.js
  4. 1 1
      src/text-parser.js

+ 5 - 3
README.md

@@ -1,10 +1,12 @@
-WIP, playing with data binding
+# Seed
+## a mini MVVM framework
 
+- 5kb gzipped!
 - DOM based templates with precise and efficient manipulation
-- Keep logic expressions outside of the templates.
-- POJSO (plain old javascript objects) FTW.
+- POJSO (Plain Old JavaScript Objects) FTW.
 - Auto dependency extraction for computed properties.
 - Auto event delegation on repeated items.
+- Component based, but can also be used alone.
 
 ### Template
 

+ 0 - 1
TODO.md

@@ -1,4 +1,3 @@
-- parse textNodes
 - sd-with
 - standarized way to reuse components (sd-component?)
 - nested properties in scope (kinda hard, maybe later)

+ 1 - 1
src/directives/index.js

@@ -14,7 +14,7 @@ module.exports = {
     each  : require('./each'),
 
     attr: function (value) {
-        this.el.setAttribute(this.arg, value)  
+        this.el.setAttribute(this.arg, value)
     },
 
     text: function (value) {

+ 1 - 1
src/text-parser.js

@@ -1,6 +1,6 @@
 var config     = require('./config'),
     ESCAPE_RE  = /[-.*+?^${}()|[\]\/\\]/g,
-    BINDING_RE = undefined
+    BINDING_RE
 
 function escapeRegex (val) {
     return val.replace(ESCAPE_RE, '\\$&')