Last active
January 22, 2016 12:52
-
-
Save chrismatheson/0d008225890267cc64a6 to your computer and use it in GitHub Desktop.
Dream code, that can be pre-processed by a static site get and produce the right stuff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<link rel="import" href="/path/to/imports/site-header.html"> | |
<style type="test/less"> | |
@base: #f938ab; | |
@import "theme.less"; | |
form { | |
background-color: @base; | |
} | |
</style> | |
<script type="application/typescript" onload="render()"> | |
import {form} from "sharedComponenets"; | |
import {render} from "react-dom"; | |
const signup = form('signup for stuff'); | |
render(singup, document.querySelector('main')); | |
</script> | |
</head> | |
<body> | |
<site-header/> | |
<main></main> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<style type="test/css"> | |
</style> | |
<script type="application/javascript"></script> | |
</head> | |
<body> | |
<header>this is my awesome site</header> | |
<div reat-id="fgdsh" | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment