@Override
public void execute(Environment env, Map args, TemplateModel[] tms, TemplateDirectiveBody body)
throws TemplateException, IOException {
RequestContext rc = getDataModel("_r.rc", RequestContext.class);
Boolean debug_links = rc.getParamAs(WebBundleManager.DEBUG_LINK_STRING, Boolean.class, null);
//if not null, make sure we set the cookie with the value
if (debug_links != null){
rc.setCookie(WebBundleManager.DEBUG_LINK_STRING, debug_links);
}
//if there is not debug_link param in the URL, check the cookie (set false if not found)
else{
debug_links = rc.getCookie(WebBundleManager.DEBUG_LINK_STRING, Boolean.class, false);
}
String contextPath = rc.getContextPath();
// [@webBundle folder="/css/" type="js" /]
//get the param
String path = getParam(args,"path",String.class);