/*
* get the path
*/
arg = value.toString();
Resource resource = null;
try {
resource = rsvc.getContent(arg, getInputEncoding(context));
} catch (ResourceNotFoundException rnfe) {
/*
* the arg wasn't found. Note it and throw
*/
rsvc.error("#include(): cannot find resource '" + arg
+ "', called from template "
+ context.getCurrentTemplateName() + " at (" + getLine()
+ ", " + getColumn() + ")");
throw rnfe;
}
catch (Exception e) {
rsvc.error("#include(): arg = '" + arg + "', called from template "
+ context.getCurrentTemplateName() + " at (" + getLine()
+ ", " + getColumn() + ") : " + e);
}
if (resource == null)
return false;
writer.write((String) resource.getData());
return true;
}