Now with formatting available

This commit is contained in:
Greg Hellings
2025-02-25 14:55:39 -06:00
parent be7d2873e6
commit 0c7843b386
6 changed files with 26 additions and 11 deletions
+3 -3
View File
@@ -1,8 +1,8 @@
use rand::Rng;
use sword_rs::mgr::Mgr;
use sword_rs::mgr::{Format, Mgr};
fn main() {
let mut mgr = Mgr::new();
let mut mgr = Mgr::new_with_format(Format::HTMLHref);
for mod_name in mgr.get_modules() {
let mut module = mgr.get_module(&mod_name);
println!("Module: {}", module.get_name());
@@ -12,7 +12,7 @@ fn main() {
println!(
"Text John 3:{} is \"{}\"",
random_number,
module.strip_text()
module.render_text()
);
}
}