Added "template" to the scope for public pages