add template tag and docs