Created
December 5, 2010 20:18
-
-
Save wandernauta/729426 to your computer and use it in GitHub Desktop.
Bacon is a HTML generation library for ooc. It doesn't really exist just yet.
This file contains hidden or 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
import bacon | |
root = BaconRoot new() | |
root add("body") add("div#someid") add("strong.someclass") text("Cóól story bro") | |
root out() println() | |
/* | |
would print something like... | |
<!DOCTYPE HTML> | |
<html> | |
<body> | |
<div id="someid"> | |
<strong class="someclass"> | |
Cóól story bro | |
</strong> | |
</div> | |
</body> | |
</html> | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment