use pipe for template process/apply