Complete generating ERB files and linking