Hi,
Following the document, I have created a cool plugin and attached it to masthead.
Now I want to edit app/FreezerController.groovy to display the contents of a file
like cat <filename>. Is it possible? How to do this?
My FreezerContriller.groovy looks like
import org.hyperic.hq.hqu.rendit.BaseController
class FreezerController
extends BaseController
{
protected void init() {
onlyAllowSuperUsers()
}
def index(params) {
// By default, this sends views/freezer/index.gsp to
// the browser, providing 'plugin' and 'userName' locals to it
//
// The name of the currently-executed action dictates which .gsp file
// to render (in this case, index.gsp).
//
// If you want to render AJAX, read RenderFrame.groovy for parameters.
render(locals:[ plugin : getPlugin(),
userName: user.name])
}
}
Thanks,
Rajamani