register allowedContent with each template

There is a new 'allowedContent' key when registering template.
It is used to populate filter.