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

How can i capitalize name of method in template? #127

Open
da1z opened this issue Dec 19, 2024 · 1 comment
Open

How can i capitalize name of method in template? #127

da1z opened this issue Dec 19, 2024 · 1 comment

Comments

@da1z
Copy link

da1z commented Dec 19, 2024

trying to generate some type for kotlin. I need one class for each module. class name is like {{moduleName}}{{methodName}} . how can i capitalize methodName ? thanks

@haven2world
Copy link
Collaborator

ts-gyb renders code depending on mustache. I did some research and didn't find a way to capitalize strings on the template side, so I think the only way would be providing the capitalized name in the renderer. I think you can try to add a property in the MethodView so you can access it in the template.
Welcome to raise a PR

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

2 participants