Use pattern in views