templated post handler