Revert "refactor templates with project-template rendering tags"

Sed expression used was greedy, leading to improper wrapping

This reverts commit f66060d4856924c5e4a5a136798694bb3a2fec52.
refactor template tags again with tweaked sed command