From 3a3e00ce1208645889f9c3763fa14d3b761a4f07 Mon Sep 17 00:00:00 2001 From: "David J. Allen" Date: Tue, 7 Jan 2025 12:53:43 -0700 Subject: [PATCH] readme: fixed formatting issues --- README.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 02c7be8..76521a5 100644 --- a/README.md +++ b/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... - // apply the substitutions to Jinja template and return output as FileMap (i.e. path and it's contents) - return generator.ApplyTemplate(path, generator.Mappings{ - "plugin_name": g.GetName(), - "plugin_version": g.GetVersion(), - "plugin_description": g.GetDescription(), - "dhcp_hosts": output, - }) + // apply the substitutions to Jinja template and return output as FileMap (i.e. path and it's contents) + return generator.ApplyTemplate(path, generator.Mappings{ + "plugin_name": g.GetName(), + "plugin_version": g.GetVersion(), + "plugin_description": g.GetDescription(), + "dhcp_hosts": output, + }) + } } > [!NOTE]