A realtime light library to parse HTML and CSS in the browser.
1 - Include voila.js
<script src="voila.js"></script>
2 - Call voila class
2.a - Without parameters
var voila = new Voila();
2.b - With parameters
var voila = new Voila({
csscontainer : "css",
htmlcontainer : "html",
previewcontainer : "preview",
autorun : true
});
Options are passed to the voila
function via an options hash at instantiation:
Class of the CSS container | Default = "css"
Class of the HTML container | Default = "html"
Class of the Preview container | Default = "preview"
Autorun flag | Default = true