[Model] Add templates support