Added template publish support
Merge branch 'implement_publish'