natter/src/context/src_block.rs

31 lines
521 B
Rust
Raw Normal View History

2023-10-27 17:08:58 -04:00
use std::path::Path;
use serde::Serialize;
use crate::config::Config;
use crate::error::CustomError;
use crate::intermediate::ISrcBlock;
use super::macros::render;
2023-10-27 17:08:58 -04:00
#[derive(Debug, Serialize)]
#[serde(tag = "type")]
#[serde(rename = "src_block")]
pub(crate) struct RenderSrcBlock {
lines: Vec<String>,
}
2023-10-27 17:08:58 -04:00
render!(
RenderSrcBlock,
ISrcBlock,
original,
2023-10-31 20:02:46 -04:00
_config,
_output_directory,
_output_file,
{
Ok(RenderSrcBlock {
lines: original.lines.clone(),
})
2023-10-27 17:08:58 -04:00
}
);