readme: fixed formatting issues
This commit is contained in:
parent
8915a28258
commit
3a3e00ce12
1 changed files with 8 additions and 7 deletions
15
README.md
15
README.md
|
|
@ -144,13 +144,14 @@ func (g *MyGenerator) Generate(config *configurator.Config, opts ...util.Option)
|
||||||
// ... blah, blah, blah, check error, format output, and so on...
|
// ... blah, blah, blah, check error, format output, and so on...
|
||||||
|
|
||||||
|
|
||||||
// apply the substitutions to Jinja template and return output as FileMap (i.e. path and it's contents)
|
// apply the substitutions to Jinja template and return output as FileMap (i.e. path and it's contents)
|
||||||
return generator.ApplyTemplate(path, generator.Mappings{
|
return generator.ApplyTemplate(path, generator.Mappings{
|
||||||
"plugin_name": g.GetName(),
|
"plugin_name": g.GetName(),
|
||||||
"plugin_version": g.GetVersion(),
|
"plugin_version": g.GetVersion(),
|
||||||
"plugin_description": g.GetDescription(),
|
"plugin_description": g.GetDescription(),
|
||||||
"dhcp_hosts": output,
|
"dhcp_hosts": output,
|
||||||
})
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue