Support dynamic body template location, close #951