Reputation: 423
I am fresh to use Servicenow glides. I followed the guide and wrote a piece of jelly file like below,
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form" xmlns:c="/lib/credentials" xmlns:s="/lib/samples">
<g:evaluate var="jvar_the_output" object="true" jelly="true">
var outPuts = 'helloworld';
outPuts;
</g:evaluate>
<h1>--${jvar_the_output}--</h1>
</j:jelly>
I am thinking to print the big helloworld on the page, but I see below contents print on page directly.
var outPuts = 'helloworld';outPuts;
----
Can someone help to check what is the problem?
Upvotes: 0
Views: 1558