Comparing version 1.0.1 to 1.0.2
49
index.js
@@ -30,50 +30,1 @@ var parse = require('./parse'); | ||
}; | ||
var Main = Literal.Component( | ||
`<p class="corn"> | ||
<div> | ||
This is a div! | ||
<span>${iHopeThisWorks}</span> | ||
</div> | ||
</p>` | ||
); | ||
/**/ | ||
var iHopeThisWorks = Literal.Component( | ||
`<div> | ||
This should render like React. | ||
<p>Isn't this lovely?</p> | ||
</div>` | ||
); | ||
// | ||
// var itWorks = Literal.Component( | ||
// `<div> | ||
// Oh yeah! | ||
// </div>` | ||
// ); | ||
Main | ||
// Literal.Render(Main, 'app'); | ||
// var nodeElements = html.toString().match(/(<.+>|\w+\s)/g); | ||
// console.log(nodeElements); | ||
// nodeElements.forEach(function(element, index) { | ||
// if (element.match(/<a-z>/g) && !element.match(/class/g)) { | ||
// | ||
// } else if (element.match(/<a-z>||class/g)) { | ||
// | ||
// } | ||
// if (!e.match(/\//)) { | ||
// console.log(e); | ||
// document.createElement(e); | ||
// } | ||
// }); |
{ | ||
"name": "literaljs", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Lightweight components using template literals with a virtual dom and diff system.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
2180
4
1
49
28