Rimu Markup for V
v-rimu
Features
Functionally identical to the
Rimu TypeScript implementation
Implementation
This implementation is a verbatim port of the canonical
TypeScript code
Learn more
See the
Rimu documentation
Installation
The following V command installs the Rimu module and its dependencies:
v install srackham.rimu
Example installation and test workflows for Ubuntu, macOS and Windows can be found in the Github Actions
workflow file
Using the v-rimu library
Example usage:
module main
import srackham.rimu
fn main() {
println(rimu.render('*Hello Rimu*!', rimu.RenderOptions{}))
}
To compile and run this simple application:
-
Copy the code above to a file named
hello-rimu.v
-
Run it directly:
v -enable-globals run hello-rimu.v
-
Compile it to an executable and run it:
v -enable-globals -o hello hello-rimu.v ./hello
See also the
Rimu API documentation
Rimu CLI command
The V port of the
Rimu CLI command
rimuv
To build the
rimuv
v install srackham.rimu
git clone https://github.com/srackham/v-rimu
cd v-rimu
make build-rimuv
Execute
rimuv
./bin/rimuv --help