Is it possible to generate file content based on file name?

I need a lot of similar `.conf` files with content depending on file name only.

Can I create some "dynamic" file and generate a bunch of symlinks pointing to this file?

Maybe fifo is a solution, but I can't get the file name in generating script:

```
zsh$ mkfifo ./dynamic.conf
zsh$ ln -s ./dynamic.conf ./case1.conf
zsh$ echo $0  > ./dynamic.conf & 
zsh$ cat ./case1.conf

```

I have `zsh` (I need `case1.conf`).