Can't evaluate field Arg, since 0.146+

Hi everyone,

I was told about a problem since version 0.146+, indeed I have this problem with 0.146.3 extended (go1.24.2).

I have the impression only on the call of partial type function with a return

error calling partial: template: :1:29: executing "_partials/func/preparedata" at <.Arg>: can't evaluate field Arg in type string

/layouts/partials/func/PrepareData

{{ return
  htmlUnescape (
    plainify (
      chomp .
    )
  )
}}

I don’t understand this <.Arg>.

Thanks,

A partial template must have an extension:

layouts/_partials/func/preparedata.html
{{ partial "func/preparedata.html" . }}

Thanks @jmooring for responding so quickly

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.