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;
|
|
|
|
|
2023-10-31 19:48:05 -04:00
|
|
|
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
|
|
|
|
2023-10-31 19:48:05 -04:00
|
|
|
render!(
|
|
|
|
RenderEntity,
|
|
|
|
IEntity,
|
|
|
|
original,
|
2023-10-31 20:02:46 -04:00
|
|
|
_config,
|
|
|
|
_output_directory,
|
|
|
|
_output_file,
|
2023-10-31 19:48:05 -04:00
|
|
|
{
|
2023-10-27 20:27:50 -04:00
|
|
|
Ok(RenderEntity {
|
2023-10-31 19:48:05 -04:00
|
|
|
html: original.html.clone(),
|
2023-10-27 20:27:50 -04:00
|
|
|
})
|
2023-10-27 17:48:19 -04:00
|
|
|
}
|
2023-10-31 19:48:05 -04:00
|
|
|
);
|