import re
with open('src/views/TaxiView.vue', 'r', encoding='utf-8') as f:
text = f.read()
# Just extract the content using regex
template_match = re.search(r'(.*?)\s*', text, re.DOTALL)
style_content = style_match.group(1) if style_match else ""
# Create TaxisLocales.vue
taxis_script = """"""
with open('src/views/transporte/TaxisLocales.vue', 'w', encoding='utf-8') as f:
f.write(taxis_script + f"\n\n \n{tab1_code}\n
\n\n\n")
# Create ViajesTuristicos.vue
viajes_script = """"""
tab2_code = tab2_code.replace("router.push(`/shuttle/${shuttle.id}`);", "verDetalle(shuttle.id);")
with open('src/views/transporte/ViajesTuristicos.vue', 'w', encoding='utf-8') as f:
f.write(viajes_script + f"\n\n \n{tab2_code}\n
\n\n\n")
print("Success!")
else:
print("Could not find tabs")
else:
print("Could not find template")