natter/src/context/entity.rs

31 lines
500 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::IEntity;
use super::macros::render;
2023-10-27 17:48:19 -04:00
#[derive(Debug, Serialize)]
#[serde(tag = "type")]
#[serde(rename = "entity")]
2023-10-27 20:27:50 -04:00
pub(crate) struct RenderEntity {
html: String,
}
2023-10-27 17:48:19 -04:00
render!(
RenderEntity,
IEntity,
original,
2023-10-31 20:02:46 -04:00
_config,
_output_directory,
_output_file,
{
2023-10-27 20:27:50 -04:00
Ok(RenderEntity {
html: original.html.clone(),
2023-10-27 20:27:50 -04:00
})
2023-10-27 17:48:19 -04:00
}
);