use templating for pastelink