Closed d3ep4k closed 4 years ago
Similarly XRequest plugin can also be built. There is no need for m:xrequest tags or m:script
<jsp:directive.include file="../fragments/mason-init.jspf"/>
<m:resource>
<m:request method="GET">
<m:execute className="com.metamug.mason.plugin.GroovyRunner" var="res" >
<m:arg name="file" value="test.groovy" />
</m:execute>
<c:set target="${output}" property="response" value="${res}"/>
</m:request>
</m:resource>
Instead of having script tag, we can use script plugin with execute tag.