The Problem is the SEF Plugin. So I don't want to modify a core Plugin, so I wrote a new Plugin that makes the changes only for the mustache template back.
!!! Importetnt tatImportent that the new plugin must execute after the SEF Plugin
Here is my code sample to replace the / for the {{name}}
public function onAfterRender()
{
if (!$this->app->isClient('site'))
{
return;
}
$buffer = $this->app->getBody();
$buffer = str_replace('/{{', '{{', $buffer);
$this->app->setBody($buffer);
}