pub struct Transformer { /* private fields */ }Expand description
Transformer for converting Go template AST to idiomatic Jinja2
Implementations§
Source§impl Transformer
impl Transformer
pub fn new() -> Self
Sourcepub fn with_chart_prefix(self, prefix: &str) -> Self
pub fn with_chart_prefix(self, prefix: &str) -> Self
Set the chart name prefix to strip from include calls
Sourcepub fn with_type_context(self, ctx: TypeContext) -> Self
pub fn with_type_context(self, ctx: TypeContext) -> Self
Set the type context for smarter dict/list detection
Sourcepub fn warnings(&self) -> &[TransformWarning]
pub fn warnings(&self) -> &[TransformWarning]
Get warnings generated during transformation