Skip to content

Commit

Permalink
[IMP] Improve code and readme file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tejas Tank authored and Tejas Tank committed Mar 19, 2013
1 parent 925c0cc commit bc96594
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
qweb2
=====

TejasTank:- Javascript template engine, super fast and most stable.
TejasTank:- Javascript template engine, super fast and most stable.


Features:
=========
* foreach
* if
* elseif
* else
* call
* set
* esc
* escf
* raw
* rawf
* js
* debug
* log

Contact : [email protected]
3 changes: 2 additions & 1 deletion qweb2.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ QWeb2.Element = (function() {
this._indent = 1;
this.process_children = true;
var childs = this.node.childNodes;
this.attr_regexp = new RegExp("^" + this.engine.prefix + "-(.+)");
if (childs) {
for (var i = 0, ilen = childs.length; i < ilen; i++) {
//this.children.push(new QWeb2.Element(this.engine, childs[i]));
Expand All @@ -435,7 +436,7 @@ QWeb2.Element = (function() {
for (var j = 0, jlen = attrs.length; j < jlen; j++) {
var attr = attrs[j];
var name = attr.name;
var m = name.match(new RegExp("^" + this.engine.prefix + "-(.+)"));
var m = name.match(this.attr_regexp);
if (m) {
name = m[1];
if (name === 'name') {
Expand Down

0 comments on commit bc96594

Please sign in to comment.