natter/src/context/verbatim.rs

31 lines
524 B
Rust
Raw Normal View History

2023-10-27 17:48:19 -04:00
use std::path::Path;
use serde::Serialize;
use crate::config::Config;
use crate::error::CustomError;
use crate::intermediate::IVerbatim;
2023-10-31 20:02:04 -04:00
use super::macros::render;
2023-10-27 17:48:19 -04:00
#[derive(Debug, Serialize)]
#[serde(tag = "type")]
#[serde(rename = "verbatim")]
2023-10-31 20:02:04 -04:00
pub(crate) struct RenderVerbatim {
contents: String,
}
2023-10-27 17:48:19 -04:00
2023-10-31 20:02:04 -04:00
render!(
RenderVerbatim,
IVerbatim,
original,
2023-10-31 20:02:46 -04:00
_config,
_output_directory,
_output_file,
2023-10-31 20:02:04 -04:00
{
Ok(RenderVerbatim {
contents: original.contents.clone(),
})
}
);