### Discussed in https://github.com/quarto-dev/quarto-cli/discussions/5796

<div type='discussions-op-text'>

<sup>Originally posted by **coatless** June  2, 2023</sup>
### Description

Inside a Lua filter, I would like to generate a file that can be attached on an on-demand basis. So, I'm looking to add a dynamic "configuration" file. 

For example, I'd like the Lua filter to be able to write out a configuration file like:

```yaml
- name: config
- property:
   - render: true 
```

Is there a good way to go about this currently? I think all files largely have to be "fully" present to be included with a resource call.
</div>
dragonstyle
2023-06-12T14:04:06Z
dragonstyle
enhancement needs-discussion
v1.4
closed
Consider exposing internal quarto LUA functions for working with files
https://github.com/quarto-dev/quarto-cli/issues/5892