Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding get doc content endpoint for IDE custom templates #1

Open
TalkySafe143 opened this issue Jan 24, 2024 · 0 comments
Open

Adding get doc content endpoint for IDE custom templates #1

TalkySafe143 opened this issue Jan 24, 2024 · 0 comments

Comments

@TalkySafe143
Copy link

I'm actually working on cpinitiative/ide#33

And I've been thinking, that while the template can be loaded to the new file with the copyFile endpoint, I think it would be much lighter if the content of the file was retrieved from the template.

With the content it is much easier to reset the file to the template which is a functionality that is currently with the default code of each file.

image

I propose to add an endpoint where given a file it returns the content in plain text. So, when the page is rendering, retrieve the template and only set the value for the editor, the handleInsertFileTemplate can be reused.

@TalkySafe143 TalkySafe143 changed the title Adding get doc content enpoint for IDE custom templates Adding get doc content endpoint for IDE custom templates Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant