generate: add txt and erb source page support