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

Helper function for partial names #4

Merged
merged 1 commit into from
Oct 17, 2023

Conversation

michaelfarrell76
Copy link
Member

Useful for registering partials

@michaelfarrell76 michaelfarrell76 requested a review from a team October 17, 2023 21:04
fileName: string,
extension = 'hbs',
): string {
return cases.camelCase(
Copy link
Member

@dipack95 dipack95 Oct 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: You could use path.extname(filename) to find the extension and then use it in the function here

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

many times the file is like test.js.hbs - and i want it to result in testJs

@michaelfarrell76 michaelfarrell76 merged commit 9ed1e8d into main Oct 17, 2023
8 checks passed
@delete-merged-branch delete-merged-branch bot deleted the michaelfarrell76/helper-func branch October 17, 2023 21:07
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