Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

52 lines (44 sloc) 1.821 kb
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>legojs</title>
<link rel="stylesheet" href="http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.css">
<link rel="stylesheet" href="http://css.cdn.tl/normalize.css">
<link rel="stylesheet" href="css/style.css">
<script data-main="js/demo" src="http://requirejs.org/docs/release/2.0.2/minified/require.js"></script>
</head>
<body>
<h1><img src="img/lego.png" alt="lego">js</h1>
<p class="main">HTML from CSS-like selectors</p>
<div class="ide">
<label for="code">write a <em>legojs</em> expression below and click <strong>run</strong></label>
<textarea id="code">
div > (
(h1 > (img[src="img/lego.png" alt="lego"] + {js})) +
p.main {HTML from CSS-like selectors} +
(p > ({write a } + em {legojs} + { expression below and click } + strong {run}))
)
</textarea>
<div class="buttons">
<select id="snippets"></select>
<button id="load">load</button>
<button id="run">run</button>
</div>
<div class="output">
<label for="html">result</label>
<div id="html"></div>
<label for="raw">html</label>
<pre id="raw" class="prettyprint lang-html"></div>
<label for="tree">tree</label>
<pre id="tree" class="prettyprint lang-js"></pre>
</div>
</div>
<div id="footer">
<span><a href="test/">run tests</a></span> <em>|</em>
<span><strong>reference:</strong> tag [attr1="value" attr2="value"] #id .class1.class2 * 3 {text} &gt; (childtag1 + childtag2) </a></span>
</div>
<a href="https://github.com/marianoguerra/legojs"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.