Knockout-Sortable (template) How to set script type="text/html"

Hi guys,
I want to use knockout-sortable plugin in my CakePHP project and reproduce this behaviour :

Author of this code using script type=“text/html” for templates, but how to do it in CakePHP ?
I try to put html code simply into my .ctp file, but it of course doesnt work.

I am newbie here, please help me, how to figure it out ?

I did not try this, but I think you can set attributes in the second parameter (see Creating Inline Javascript Blocks

Something like this

$this->Html->scriptStart(['block' => true, 'type' => 'text/html']);
echo "alert('I am a HTML type script');";