Using Lua-Expressions in page templates

I'm trying to create a template that uses Lua-expressions in the frontmatter. At moment it looks like this:

---
tags: "meta/template/page"
## Uncomment any of the single-commented lines to set options
#############################################################
## Offer a suggested name when triggered
#suggestedName: "Meeting Notes/"
## Whether or not to confirm the suggestedName or go there directly
#confirmName: false
## To open a page if it already exists rather than create it fresh
openIfExists: true
## To trigger the page template with a custom command
#command: Create My Custom Page
## To trigger the page template with a custom key
#key: "Ctrl-q c"
#mac: "Cmd-Alt-q"
## To prefill frontmatter
frontmatter: |
  created: ${date.today()}
  number: 
---

The frontmatter attribute "created" evaluates fine and fills this field with the current date of the day the page was created from the template. What I want to do in the number field is reuse the page name that I enter when running the "create page from template"-command. At the moment I don't know if this is even possible.

It's probably not possible to do this, due to the way page creation works. I would argue though, that you don't need to number in the frontmatter, because it is already in the page title. So for all intents and purposes, the attribute is already there.

You could complicate your life by trying to address this, but I'd recommend not to :slight_smile: