Comparing version 0.0.18 to 0.0.19
@@ -366,2 +366,5 @@ 'use strict'; | ||
} | ||
else{ | ||
tag = ''; | ||
} | ||
} | ||
@@ -368,0 +371,0 @@ else if (ch === '@') { |
{ | ||
"name": "raz", | ||
"description": "Razor-like syntax for templating views in Express framework by mixing HTML with JavaScript.", | ||
"version": "0.0.18", | ||
"version": "0.0.19", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Sergey", |
@@ -179,2 +179,49 @@ (function () { | ||
{ | ||
name: "HTML 28.1", | ||
template: ` | ||
<!--test--> | ||
@{ | ||
var x = "123"; | ||
} | ||
<div> | ||
<span>@x</span> | ||
<a href="/"><<-- back</a> | ||
</div>`, | ||
expected: ` | ||
<!--test--> | ||
<div> | ||
<span>123</span> | ||
<a href="/"><<-- back</a> | ||
</div>` | ||
}, | ||
{ | ||
name: "HTML 28.2", | ||
template: ` | ||
<!-- d-l --> | ||
<div> | ||
<a href="/"><<-- back</a> | ||
</div>`, | ||
expected: ` | ||
<!-- d-l --> | ||
<div> | ||
<a href="/"><<-- back</a> | ||
</div>` | ||
}, | ||
{ | ||
name: "HTML 28.3", | ||
template: ` | ||
@{ | ||
<!-- d-l --> | ||
<div> | ||
<a href="/"><<-- back</a> | ||
</div> | ||
}`, | ||
expected: ` | ||
<!-- d-l --> | ||
<div> | ||
<a href="/"><<-- back</a> | ||
</div> | ||
` | ||
}, | ||
{ | ||
name: "HTML 29", | ||
@@ -181,0 +228,0 @@ template: ` |
153381
3427