Is it possible to distinguish the type of a parameter?

Then you could do something like

{{ if (eq (type .) "Array") }}

I do have use cases for this, but this is mostly due to the arbitrary liimitation of not being able to instantiate shortcodes within a template.

Also is accessing .Page within a shortcode display a null pointer dereference error? Or is it just not implemented yet?

  1. You might do this being creative with printf “%T” etc. But I don’t think you will find many arrays.
  2. not supporting shortcodes in templates isn’t an arbitrary limitation
  3. .Page in shortcodes works fine. “Dot” confusion? You will have to post a project that fails, so someone can look at it and point out what and how.