Skip to content

Instantly share code, notes, and snippets.

@wandernauta
Created December 5, 2010 20:18
Show Gist options
  • Save wandernauta/729426 to your computer and use it in GitHub Desktop.
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.
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&oacute;&oacute;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