phpstormapache-velocity

Is there a way to set a var in PhpStorm Template thanks a config file?


In PhpStorm, I´m doing this php file template using Apache velocity:

Php template

<?php

defined( 'ABSPATH' ) || exit;

use function $plugin_name_namespace\Core\get_current_plugin_domain;

printf( '<article class="post-entry-content">' );
if ( has_post_thumbnail() ) {
    printf( '<a class="post-thumbnail-link" href="%s">%s</a>',
        get_the_permalink(),
        get_the_post_thumbnail()
    );
}
echo '<div class="post-content">';
printf( '<h4 class="entry-title"><a href="%s" title="%s" rel="bookmark">%s</a></h4>',
    get_the_permalink(),
    get_the_title(),
    get_the_title()
);
printf( '<div class="entry-excerpt">%s</div>' ,get_the_excerpt() );
printf('<a href="%s" class="details-link button" rel="nofollow">%s</a>',
    get_the_permalink(),
    __( "See More", get_current_plugin_domain() )
);
echo '</div>';
echo '</article>';

?>

I would like with apache velocity to set $plugin_name_namespace up with a defalut value from a config file ( .ini, .env ... whatever )

or..

to dynamicaly fill the template up with the value from the config file.

Is there a way to do this ?


Solution

  • Not currently possible, please vote for IDEA-217553 to be notified on any progress with this feature