Use a puppet function instead of an inline template