How to pass variable to groovy code in Intellij IDEA live templates groovy script?
<p>I have a <code>groovyScript</code> in my <code>Intellij</code> IDEA live template, like this :</p>

<pre><code>groovyScript("D:/test.groovy","", v1)
</code></pre>

<p>on my <code>D:/test.groovy</code> i have a code like this:</p>

<pre><code>if ( v1 == 'abc') {
    'abc'
}
</code></pre>

<p>Now I want to pass v1 variable into test.groovy ,can any one help me how can I do this?</p>