Embed not rendered in template

The following code for a widget to add a photo gallery to pages has a weird working.
The template part to render only in the correct pages, eg when is present the attribute urlfoto, is working.

The problem is in the embed that isn’t rendered

The code:
:camera:Foto
```embed
url: {{urlfoto}}
```

The result is:

Any suggestion?

Thanks

I’ve no way to test right now but maybe this could help?

Tryied the escapeDirective but no luck to have a result