Skip to content

Commit

Permalink
extract inline script in
Browse files Browse the repository at this point in the history
  • Loading branch information
shlomomdahan committed Oct 30, 2024
1 parent 0ff593b commit 187fb83
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Handlebars.registerHelper('startScript', function() {
return new Handlebars.SafeString("<scr" + "ipt>");
});

Handlebars.registerHelper('endScript', function() {
return new Handlebars.SafeString("</scr" + "ipt>");
});
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,10 @@
By default we just include helpers to append script tags to your build card
-->
<st:adjunct includes="au.com.centrumsystems.hudson.plugin.buildpipeline.extension.BuildCardExtension.build-card-script-helpers"/>
<![CDATA[
<script type="text/javascript">
Handlebars.registerHelper('startScript', function() {
return new Handlebars.SafeString("<scr" + "ipt>");
});
Handlebars.registerHelper('endScript', function() {
return new Handlebars.SafeString("</scr" + "ipt>");
});
</script>
]]>
</j:jelly>

0 comments on commit 187fb83

Please sign in to comment.