Avoid rendering an HTML element via server-side condition data

There are template functions coming to PHP that will allow you to access data from a serverconnect action that can be included on the page. Can't say how long the implementation will take but I already did some preparations in the PHP code for it.

Here a sample of the current experimental implementation, this can change in the future.

<!-- tell serverconnect we are in a template -->
<?php define('TEMPLATE', true); ?>
<!-- simply require the serverconnect action, it will run directly -->
<?php require('dmxConnect/api/myaction.php'); ?>
<!-- inserting data from a serverconnect expression -->
<?=_parse('expression')?>
<!-- using expression in a if statement -->
<?php if (_parse('expression') == 1) { ?>
3 Likes