Skip to main content

render_text

Function render_text 

Source
pub fn render_text() -> &'static str
Expand description

The feed format’s render, alchemy/render.alc, the file the manifest’s translate.render names: a library of alchemy definitions, with no export, whose entry point feed-render writes a tree’s events as one document. A host links it with its own program. The crate embeds its own copy, translate/render.alc, held to the file as the manifest’s is; the embedding, translate/embed.alc, is translate().embed, and the transducer part, translate/transduce.alc, is translate().transduce.

assert!(tabnas_feed::render_text().contains("def feed-render [input]"));
let parts = tabnas_feed::translate().expect("the feed format has parts");
let transduce = parts.transduce.expect("the feed format has a transducer part");
assert_eq!(transduce.entry, "feed-transduce");