I added one function to Volt like this:
$compiler->addFunction('formatPrice', function ($price){
echo($price); die();
});
In Volt template:
<span class="p-price-number">{{ formatPrice(product.product_price) }}</span>
product.product_price
is a string as 100000.
But I received this result on the browser:
$product->product_min_price
What did I do wrong here?