v-rimu is a port of the Rimu Markup language written in the V programming language.
Functionally identical to the Rimu TypeScript implementation version 11.4.
This implementation is a verbatim port of the canonical TypeScript code.
See the Rimu documentation.
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.
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.
The V port of the Rimu CLI command is rimuv
.
To build the rimuv
executable:
v install srackham.rimu
git clone https://github.com/srackham/v-rimu
cd v-rimu
make build-rimuv
Execute rimuv
, for example:
./bin/rimuv --help