From 03695e62fa93c7a86b8a1032a2e14943dc199658 Mon Sep 17 00:00:00 2001 From: "Gustavo L de Mello (Guz)" Date: Mon, 13 Jan 2025 16:31:23 -0300 Subject: [PATCH] refactor(blogo,plugins,plaintext): move plaintext renderer to dedicated file --- blogo/{defaults.go => plugin_plaintext.go} | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) rename blogo/{defaults.go => plugin_plaintext.go} (57%) diff --git a/blogo/defaults.go b/blogo/plugin_plaintext.go similarity index 57% rename from blogo/defaults.go rename to blogo/plugin_plaintext.go index 151fa0d..25bf85e 100644 --- a/blogo/defaults.go +++ b/blogo/plugin_plaintext.go @@ -1,3 +1,18 @@ +// Copyright 2025-present Gustavo "Guz" L. de Mello +// Copyright 2025-present The Lored.dev Contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package blogo import ( @@ -14,7 +29,7 @@ func NewPlainTextRenderer() Plugin { } func (p *painTextRenderer) Name() string { - return "blogo-renderer-plaintext" + return "blogo-plaintext-renderer" } func (p *painTextRenderer) Render(f fs.File, w io.Writer) error {