How do I insert code like in jade:
<?php test(); ?>
so it doesn't get corrupted by the jade compiler?
I see the date, most likely you have already found the answer, but still leave it here for those who come here through the search. Suddenly useful.
If this is just a separate line of php code, then you can simply write like this:title <?php bloginfo('name'); ?>
If this is a parameter that needs to be passed to the jade function, then write it like this:meta(charset!="<?php bloginfo( 'charset' ); ?>")
here the sign is "!" disables the screening of php inclusions in jade.
I hope clearly explained :)
You can just have this combination:
| <?php test(); ?>
Or use Jade-PHP.
Source: https://ru.stackoverflow.com/questions/227531/