This article explains how to use web parts for EPiServer templates using the Web Part Framework for EPiServer which is available on EPiCode.