Add entity.
This commit is contained in:
@@ -9,15 +9,19 @@ use crate::intermediate::IEntity;
|
||||
#[derive(Debug, Serialize)]
|
||||
#[serde(tag = "type")]
|
||||
#[serde(rename = "entity")]
|
||||
pub(crate) struct RenderEntity {}
|
||||
pub(crate) struct RenderEntity {
|
||||
html: String,
|
||||
}
|
||||
|
||||
impl RenderEntity {
|
||||
pub(crate) fn new(
|
||||
config: &Config,
|
||||
output_directory: &Path,
|
||||
output_file: &Path,
|
||||
comment: &IEntity,
|
||||
entity: &IEntity,
|
||||
) -> Result<RenderEntity, CustomError> {
|
||||
Ok(RenderEntity {})
|
||||
Ok(RenderEntity {
|
||||
html: entity.html.clone(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user