Hi. I have my blade template for my ACF block:
app/resources/views/blocks/my-block.blade.php
The acf_register_block_type
function has the template path. It works:
'render_template' => 'app/themes/sage/resources/views/blocks/my-block.blade.php',
But none of blade markup inside this template is rendered in the front. I mean, this:
@if (true)
test
@endif
is rendered literally:
Normal PHP, like this, works:
<?php echo get_field('my_block_field'); ?>
How can I make the templates transpile the blade markup? it’s possible?