canReference

fun canReference(target: Template): Boolean(source)

Returns true if and only if this would not be part of a cycle of recursive references in context after setting template to target.