It would be nice if the following worked as expect, displaying the value $0.00 instead of leaving the XML unaltered.
<?php
require "vendor/autoload.php";
$xml = '<span>FAILS</span>';
$tss = 'span:[data(foo)!=""] { content: "$", data(foo); } ';
$data['foo'] = 0.00;
$template = new Transphporm\Builder($xml, $tss);
echo $template->output($data)->body . PHP_EOL;
I have frequent need for this kind of check in my TSS code because the application service classes I'm calling don't always return every data element.
Is there perhaps a work-around I don't know about?
It would be nice if the following worked as expect, displaying the value
$0.00instead of leaving the XML unaltered.I have frequent need for this kind of check in my TSS code because the application service classes I'm calling don't always return every data element.
Is there perhaps a work-around I don't know about?