# Evaluating a variable as Hugo code? \`eval\` or \`hugoify\` function?

**URL:** <https://discourse.gohugo.io/t/evaluating-a-variable-as-hugo-code-eval-or-hugoify-function/42686>\
**Category:** support\
**Created:** [January 29, 2023, 11:37pm UTC](https://discourse.gohugo.io/t/evaluating-a-variable-as-hugo-code-eval-or-hugoify-function/42686 "2023-01-29T23:37:19Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [January 30, 2023, 12:05am UTC](https://discourse.gohugo.io/t/evaluating-a-variable-as-hugo-code-eval-or-hugoify-function/42686/2 "2023-01-30T00:05:13Z")

</div>

> [@pleasantone](#):
>
> Is this possible?

No, it is not.

You could do something like this, but I wouldn’t…

```plaintext
a:
  type: string
  content: Some regular text.
b:
  type: pageReference
  content: "/about"
c:
  type: pageProperty
  content: title

```

I came up with an eval function a while ago, but I only use for testing and some documentation:  
[https://discourse.gohugo.io/t/eval-function/32148/5](https://discourse.gohugo.io/t/eval-function/32148/5)

---

_[View the full topic](https://discourse.gohugo.io/t/evaluating-a-variable-as-hugo-code-eval-or-hugoify-function/42686)._
