Rename hstring.RenderedHTML => hstring.HTML

And add a comment about why it exists.
This commit is contained in:
Bjørn Erik Pedersen
2024-09-01 10:03:10 +02:00
parent 96afea4acc
commit 469124823c
7 changed files with 27 additions and 25 deletions

View File

@@ -928,7 +928,7 @@ func (c *cachedContentScope) RenderString(ctx context.Context, args ...any) (tem
contentToRenderv := args[sidx]
if _, ok := contentToRenderv.(hstring.RenderedHTML); ok {
if _, ok := contentToRenderv.(hstring.HTML); ok {
// This content is already rendered, this is potentially
// a infinite recursion.
return "", errors.New("text is already rendered, repeating it may cause infinite recursion")