optional plugin base to template toolkit