Fix #4 by adding domain/depends in templates