Browser Engine
-
Clone the QUX source code from https://github.com/mpf0007/QUX
-
Run
cargo build
to build QUX, andcargo run
to run it.
To build and run with optimizations enabled, use cargo build --release
and
cargo run --release
.
By default, QUX will load test.html and test.css from the examples
directory. You can use the --html
and --css
arguments to the QUX
executable to change the input files:
./target/debug/QUX --html examples/test.html --css examples/test.css
The rendered page will be saved to a file named output.pdf
. To change the output filename, use the -o
option. To switch to PNG output, use add
--format png
.