Doc generation using ERB