Added support for page templates in the widget rules mechanism.