(Quick Reference)

1 Overview - Reference Documentation

Authors:

Version: 0.4.4

1 Overview

This plugin allows you to reference GSP-generated files as cacheable static resources. Consider the following:

fibonacci.js.gsp

<% fib = {n ->; return n <= 1 ? n : fib(n-1) + fib(n-2)} %>
var fibonacci = [<%= (0..10).collect{ fib.call(it) }.join(',') %>];

This is then cacheable and serveable as a javascript file as:

fibonacci.js

var fibonacci = [0,1,1,2,3,5,8,13,21,34,55];