use directive with data instead of partials