Skip to content

Commit

Permalink
Update mrml to 4.0.1 (#16)
Browse files Browse the repository at this point in the history
* mrml 4.0.1

* adjust to new mrml api
  • Loading branch information
ushi-as authored Jul 4, 2024
1 parent eb1bf9e commit d36041c
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 47 deletions.
104 changes: 60 additions & 44 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ext/mrml/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = ["Jonian Guveli <jonian@hardpixel.eu>"]
edition = "2018"

[dependencies]
mrml = "3.0"
mrml = "4.0"
magnus = "0.5"

[dependencies.serde]
Expand Down
4 changes: 2 additions & 2 deletions ext/mrml/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use magnus::{
};

use mrml::mjml::Mjml;
use mrml::prelude::print::Print;
use mrml::prelude::print::Printable;
use mrml::prelude::render::RenderOptions;

fn mrml_error() -> ExceptionClass {
Expand Down Expand Up @@ -51,7 +51,7 @@ impl Template {
}

fn to_mjml(&self) -> String {
self.res.dense_print()
self.res.print_dense().unwrap()
}

fn to_json(&self) -> Result<String, Error> {
Expand Down

0 comments on commit d36041c

Please sign in to comment.