Used ignore pattern in printer.

Used ignore pattern in printer instead of recursing template
function instantiation.