add @PAGE@ and @NS@ for namespace template