add support for <view> tag and attribute passing