roole-browser

Browser version of the Roole language

Usage no npm install needed!

<script type="module">
  import rooleBrowser from 'https://cdn.skypack.dev/roole-browser';
</script>

README

roole-browser

Browser version of the Roole language

Installation

Insert the roole.js file into the HTML.

You can get the roole.js file by:

  • directly download it from this repo,

  • install via npm

      npm install roole-browser
    

    and use node_modules/roole-browser/roole.js

Example

<script src="path/to/roole.js"></script>

<script>
    roole.compile(code, options, callback);
</script>

Roole files inserted with

<link ref="stylesheet/roole" src="path/to/style.roo">

and Roole code embedded in

<style type="text/roole">
    // roole code
</style>

will be automatically compiled and the compiled CSS will be automatically applied to the current page.