Struct cryogen_plugin_yaml::YamlPlugin
[−]
[src]
pub struct YamlPlugin;
Trait Implementations
impl CompileVariablePlugin for YamlPlugin
[src]
type RenderValue = Value
The serializable value to add to the Tera context. Read more
fn plugin_name() -> &'static str
The name of the plugin. Read more
fn arg_full_name() -> &'static str
The name of the argument that provides the variable name to file mapping. Read more
fn arg_help() -> &'static str
The help string to display. Read more
fn additional_args() -> Vec<Arg<'static, 'static>>
Optional arguments to supply. These should be prefixed to avoid namespace clashes. Read more
fn from_args<'a>(_: &'a ArgMatches<'a>) -> YamlPlugin
Constructor for building the plugin from the supplied command line arguments. Read more
fn read_file(&self, file: File) -> Result<Self::RenderValue, String>
Reads and parses the supplied file. The result is stored in the Tera context. Read more
fn read_path<P>(&self, path: P) -> Result<Self::RenderValue, String> where
P: AsRef<Path>,
P: AsRef<Path>,
Reads and parses a file at a specific path. Read more