Skip to content

Conversation

@jd-solanki
Copy link
Contributor

Description

We already have template function but we can't name the template variables for readability.

Linked Issues

N/A

Additional context

Thanks for this package ❤️

@antfu
Copy link
Owner

antfu commented Jun 28, 2023

Maybe we could override the template?

@jd-solanki
Copy link
Contributor Author

You mean, removing existing implementation? I wanted that 😅 but it might break your other package so I created new one.

Do you want to replace the existing template function with this one? I'll be happy to do that.

@jd-solanki
Copy link
Contributor Author

Or you mean method & type overriding? Single function but does both 🤔

@antfu
Copy link
Owner

antfu commented Jun 28, 2023

Or you mean method & type overriding? Single function but does both 🤔

Yes :)

@jd-solanki
Copy link
Contributor Author

Or you mean method & type overriding? Single function but does both 🤔

Yes :)

ohk, I'll try to implement that 👍🏻

@jd-solanki jd-solanki marked this pull request as draft June 28, 2023 11:02
@jd-solanki jd-solanki marked this pull request as ready for review June 29, 2023 06:24
@antfu antfu changed the title feat(namedTemplate): new function feat(template): support object style templates Jun 30, 2023
@antfu antfu merged commit c7bbe2d into antfu:main Jun 30, 2023
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