Skip to content

Support Variables in Template#620

Open
aryan57 wants to merge 9 commits into
agrawal-d:mainfrom
aryan57:aryan57/support-vars-in-template
Open

Support Variables in Template#620
aryan57 wants to merge 9 commits into
agrawal-d:mainfrom
aryan57:aryan57/support-vars-in-template

Conversation

@aryan57
Copy link
Copy Markdown

@aryan57 aryan57 commented Feb 14, 2026

This PR adds the support of multiple variables which can be used in the template.

  • Move the template logic in a new file src/templateEngine.ts. Wrote unit test cases for the same.
  • Keep supporting the CLASS_NAME variable.
  • Multiple date-time related variables are added using the date-fns library.
  • Problem meta data vars are added like problem name, url, group.
  • Unique CURSOR_PLACEHOLDER variable is added which puts the cursor at that position when the file is loaded. This is similar to VS Code Snippets having the $0 variable.
  • Updated user-guide.md and package.json with the documentation.

@aryan57 aryan57 marked this pull request as ready for review February 14, 2026 22:29
@aryan57
Copy link
Copy Markdown
Author

aryan57 commented Feb 20, 2026

Hi @agrawal-d can you look into this PR please?

@agrawal-d
Copy link
Copy Markdown
Owner

Looks good - thanks! Please resolve the conflicts.

@aryan57
Copy link
Copy Markdown
Author

aryan57 commented Apr 23, 2026

Looks good - thanks! Please resolve the conflicts.

@agrawal-d sure would do, they appeared as my commits were made a long time back

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

Successfully merging this pull request may close these issues.

2 participants